/third_party/skia/src/utils/ |
H A D | SkParse.cpp | 9 #include "include/utils/SkParse.h" 66 int SkParse::Count(const char str[]) in Count() 87 int SkParse::Count(const char str[], char separator) in Count() 108 const char* SkParse::FindHex(const char str[], uint32_t* value) in FindHex() 137 const char* SkParse::FindS32(const char str[], int32_t* value) in FindS32() 163 const char* SkParse::FindMSec(const char str[], SkMSec* value) in FindMSec() 202 const char* SkParse::FindScalar(const char str[], SkScalar* value) { in FindScalar() 217 const char* SkParse::FindScalars(const char str[], SkScalar value[], int count) in FindScalars() 225 str = SkParse::FindScalar(str, value); in FindScalars() 246 bool SkParse [all...] |
H A D | SkParseColor.cpp | 9 #include "include/utils/SkParse.h" 299 const char* SkParse::FindNamedColor(const char* name, size_t len, SkColor* color) { in FindNamedColor() 342 const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { in FindColor() 346 const char* end = SkParse::FindHex(value + 1, &hex); in FindColor() 372 // const char* end = SkParse::FindScalars(value, &array[4 - count], count); in FindColor()
|
H A D | SkParsePath.cpp | 7 #include "include/utils/SkParse.h" 52 str = SkParse::FindScalars(str, &value[0].fX, count * 2); in find_points() 64 str = SkParse::FindScalar(str, value); in find_scalar()
|
H A D | SkJSON.cpp | 13 #include "include/utils/SkParse.h" 673 const auto* eos = SkParse::FindHex(hex_str, &hexed); in unescapeString()
|
/third_party/skia/tests/ |
H A D | ParseColorTest.cpp | 8 #include "include/utils/SkParse.h" 169 REPORTER_ASSERT(reporter, SkParse::FindNamedColor(c.fName , strlen(c.fName), &color) in DEF_TEST() 179 REPORTER_ASSERT(reporter, SkParse::FindNamedColor(s.c_str(), l, &color) == nullptr); in DEF_TEST() 185 REPORTER_ASSERT(reporter, SkParse::FindNamedColor(s.c_str(), s.size(), &color) == nullptr); in DEF_TEST() 189 REPORTER_ASSERT(reporter, SkParse::FindNamedColor("" , 0, &color) == nullptr); in DEF_TEST() 190 REPORTER_ASSERT(reporter, SkParse::FindNamedColor("aaa", 3, &color) == nullptr); in DEF_TEST() 191 REPORTER_ASSERT(reporter, SkParse::FindNamedColor("zzz", 3, &color) == nullptr); in DEF_TEST() 192 REPORTER_ASSERT(reporter, SkParse::FindNamedColor("aaaaaaaaaaaa", 12, &color) == nullptr); in DEF_TEST() 193 REPORTER_ASSERT(reporter, SkParse::FindNamedColor("zzzzzzzzzzzz", 12, &color) == nullptr); in DEF_TEST()
|
H A D | SVGDeviceTest.cpp | 27 #include "include/utils/SkParse.h" 83 REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount); in check_text_node() 86 SkParse::FindScalars(x, xpos.get(), xposCount); in check_text_node() 104 REPORTER_ASSERT(reporter, SkParse::Count(y) == yposCount); in check_text_node() 107 SkParse::FindScalars(y, ypos.get(), yposCount); in check_text_node()
|
H A D | PathTest.cpp | 19 #include "include/utils/SkParse.h" 1541 str = SkParse::FindScalar(str, &x); in setFromString() 1545 str = SkParse::FindScalar(str, &y); in setFromString()
|
/third_party/skia/src/xml/ |
H A D | SkDOM.cpp | 236 #include "include/utils/SkParse.h" 240 return vstr && SkParse::FindS32(vstr, value); in findS32() 245 return vstr && SkParse::FindScalars(vstr, value, count); in findScalars() 250 return vstr && SkParse::FindHex(vstr, value); in findHex() 255 return vstr && SkParse::FindBool(vstr, value); in findBool() 260 return vstr ? SkParse::FindList(vstr, list) : -1; in findList() 271 return vstr && SkParse::FindS32(vstr, &value) && value == target; in hasS32() 277 return vstr && SkParse::FindScalar(vstr, &value) && value == target; in hasScalar() 283 return vstr && SkParse::FindHex(vstr, &value) && value == target; in hasHex() 289 return vstr && SkParse in hasBool() [all...] |
/third_party/skia/modules/svg/src/ |
H A D | SkSVGAttributeParser.cpp | 9 #include "include/utils/SkParse.h" 15 // TODO: these should be shared with SkParse.cpp 96 if (const char* next = SkParse::FindScalar(fCurPos, res)) { in parseScalarToken() 104 if (const char* next = SkParse::FindS32(fCurPos, res)) { in parseInt32Token() 112 if (const char* next = SkParse::FindHex(fCurPos, res)) { in parseHexToken() 146 if (const char* next = SkParse::FindNamedColor(fCurPos, strlen(fCurPos), c)) { in parseNamedColorToken() 182 const char* p = SkParse::FindS32(fCurPos, c); in parseColorComponentToken() 199 const char* p = SkParse::FindScalar(fCurPos, &s); in parseColorComponentToken()
|
/third_party/skia/include/utils/ |
H A D | SkParse.h | 15 class SK_API SkParse { class
|
/third_party/skia/modules/skottie/src/layers/ |
H A D | SolidLayer.cpp | 10 #include "include/utils/SkParse.h" 29 !SkParse::FindHex(hex_str->begin() + 1, &c)) { in attachSolidLayer()
|