36static const char gWhiteSpace[] = { 0, 0, 0, 0, 0, 0, 0, 0,
' ',
' ',
' ',
' ', 0x09, 0x0D, 0x0A };
47 for (uint8_t rep = 0; rep < reps; ++rep) {
57 for(
int i = 0; i < 10; i++) {
84 char symbol = legal.
fSymbol | (
b ? 0x20 : 0);
88 for (
int rep = 0; rep < reps; ++rep) {
89 for (
int index = 0; index < legal.
fScalars; ++index) {
94 if (rep < reps - 1 && index < legal.
fScalars - 1) {
99 if (
'A' == legal.
fSymbol && 1 == index) {
120 fuzz->nextRange(&
count, 0, 40);
121 for (uint8_t i = 0; i <
count; ++i) {
124 SkDebugf(
"SkParsePath::FromSVGString(%s, &path);\n",spec.
c_str());
126 SkDebugf(
"Could not decode path\n");
SkString MakeRandomParsePathPiece(Fuzz *fuzz)
static void add_some_white(Fuzz *fuzz, SkString *atom)
static const char gWhiteSpace[]
static void add_white(Fuzz *fuzz, SkString *atom)
static void add_comma(Fuzz *fuzz, SkString *atom)
static const struct Legal gLegal[]
#define DEF_FUZZ(name, f)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
void nextRange(T *, Min, Max)
static bool FromSVGString(const char str[], SkPath *)
void append(const char text[])
void appendScalar(SkScalar value)
void appendU32(uint32_t value)
const char * c_str() const