42 for (
int i = 0;
i < tabCnt; ++
i) {
46 static const char newline[] =
"\n";
47 const char* input =
string.c_str();
53 result.append(input, nextNL + 1);
71 for (
const uint16_t* ptr =
src; ptr <
end;) {
72 const uint16_t* last = ptr;
75 if (n > UINT32_MAX -
s) {
83 for (
const uint16_t* ptr =
src; ptr <
end;) {
92 const char* delimiters,
97 str += strspn(str, delimiters);
105 const size_t len = strcspn(str, delimiters);
107 out->push_back().set(str,
len);
116 str += strspn(str, delimiters);
static uint32_t SkFloat2Bits(float value)
void SkStrSplit(const char *str, const char *delimiters, SkStrSplitMode splitMode, TArray< SkString > *out)
void SkAppendScalar(SkString *str, SkScalar value, SkScalarAsStringType asType)
SkString SkStringFromUTF16(const uint16_t *src, size_t count)
SkString SkTabString(const SkString &string, int tabCnt)
@ kHex_SkScalarAsStringType
@ kDec_SkScalarAsStringType
@ kCoalesce_SkStrSplitMode
static int SkStrFind(const char string[], const char substring[])
void appendUnichar(SkUnichar uni)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * data() const
void append(const char text[])
bool contains(const char substring[]) const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
SK_SPI size_t ToUTF8(SkUnichar uni, char utf8[kMaxBytesInUTF8Sequence]=nullptr)
SK_SPI SkUnichar NextUTF16(const uint16_t **ptr, const uint16_t *end)