Lines Matching full:atom
32 static void add_white(SkRandom* rand, SkString* atom) { in add_white() argument
34 atom->append(" "); in add_white()
41 atom->append(&gWhiteSpace[index], 1); in add_white()
46 static void add_comma(SkRandom* rand, SkString* atom) { in add_comma() argument
48 atom->append(","); in add_comma()
51 size_t count = atom->size(); in add_comma()
52 add_white(rand, atom); in add_comma()
54 atom->append(","); in add_comma()
57 add_white(rand, atom); in add_comma()
58 } while (count == atom->size()); in add_comma()
61 static void add_some_white(SkRandom* rand, SkString* atom) { in add_some_white() argument
62 size_t count = atom->size(); in add_some_white()
64 add_white(rand, atom); in add_some_white()
65 } while (count == atom->size()); in add_some_white()
69 SkString atom; in MakeRandomParsePathPiece() local
72 gEasy ? atom.append("\n") : add_white(rand, &atom); in MakeRandomParsePathPiece()
74 atom.append(&symbol, 1); in MakeRandomParsePathPiece()
79 add_white(rand, &atom); in MakeRandomParsePathPiece()
80 atom.appendScalar(coord); in MakeRandomParsePathPiece()
82 add_comma(rand, &atom); in MakeRandomParsePathPiece()
84 add_some_white(rand, &atom); in MakeRandomParsePathPiece()
87 atom.appendScalar(rand->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()
88 add_comma(rand, &atom); in MakeRandomParsePathPiece()
89 atom.appendU32(rand->nextRangeU(0, 1)); in MakeRandomParsePathPiece()
90 add_comma(rand, &atom); in MakeRandomParsePathPiece()
91 atom.appendU32(rand->nextRangeU(0, 1)); in MakeRandomParsePathPiece()
92 add_comma(rand, &atom); in MakeRandomParsePathPiece()
96 return atom; in MakeRandomParsePathPiece()