Go to the source code of this file.
|
static bool | is_between (int c, int min, int max) |
|
static bool | is_ws (int c) |
|
static bool | is_digit (int c) |
|
static bool | is_sep (int c) |
|
static bool | is_lower (int c) |
|
static int | to_upper (int c) |
|
static const char * | skip_ws (const char str[]) |
|
static const char * | skip_sep (const char str[]) |
|
static const char * | find_points (const char str[], SkPoint value[], int count, bool isRelative, SkPoint *relative) |
|
static const char * | find_scalar (const char str[], SkScalar *value, bool isRelative, SkScalar relative) |
|
static const char * | find_flag (const char str[], bool *value) |
|
static void | write_scalar (SkWStream *stream, SkScalar value) |
|
◆ find_flag()
static const char * find_flag |
( |
const char |
str[], |
|
|
bool * |
value |
|
) |
| |
|
static |
Definition at line 91 of file SkParsePath.cpp.
91 {
92 if (!str) {
93 return nullptr;
94 }
95 if (str[0] != '1' && str[0] != '0') {
96 return nullptr;
97 }
98 *
value = str[0] !=
'0';
100 return str;
101}
static const char * skip_sep(const char str[])
◆ find_points()
static const char * find_points |
( |
const char |
str[], |
|
|
SkPoint |
value[], |
|
|
int |
count, |
|
|
bool |
isRelative, |
|
|
SkPoint * |
relative |
|
) |
| |
|
static |
Definition at line 62 of file SkParsePath.cpp.
63 {
65 if (isRelative) {
66 for (
int index = 0; index <
count; index++) {
67 value[index].fX += relative->
fX;
68 value[index].fY += relative->
fY;
69 }
70 }
71 return str;
72}
static const char * FindScalars(const char str[], SkScalar value[], int count)
◆ find_scalar()
static const char * find_scalar |
( |
const char |
str[], |
|
|
SkScalar * |
value, |
|
|
bool |
isRelative, |
|
|
SkScalar |
relative |
|
) |
| |
|
static |
Definition at line 74 of file SkParsePath.cpp.
75 {
77 if (!str) {
78 return nullptr;
79 }
80 if (isRelative) {
82 }
84 return str;
85}
static const char * FindScalar(const char str[], SkScalar *value)
◆ is_between()
static bool is_between |
( |
int |
c, |
|
|
int |
min, |
|
|
int |
max |
|
) |
| |
|
inlinestatic |
Definition at line 22 of file SkParsePath.cpp.
22 {
23 return (
unsigned)(c -
min) <= (
unsigned)(
max -
min);
24}
static float max(float r, float g, float b)
static float min(float r, float g, float b)
◆ is_digit()
static bool is_digit |
( |
int |
c | ) |
|
|
inlinestatic |
Definition at line 30 of file SkParsePath.cpp.
30 {
32}
static bool is_between(int c, int min, int max)
◆ is_lower()
static bool is_lower |
( |
int |
c | ) |
|
|
inlinestatic |
◆ is_sep()
static bool is_sep |
( |
int |
c | ) |
|
|
inlinestatic |
◆ is_ws()
static bool is_ws |
( |
int |
c | ) |
|
|
inlinestatic |
◆ skip_sep()
static const char * skip_sep |
( |
const char |
str[] | ) |
|
|
static |
Definition at line 53 of file SkParsePath.cpp.
53 {
54 if (!str) {
55 return nullptr;
56 }
58 str++;
59 return str;
60}
static bool is_sep(int c)
◆ skip_ws()
static const char * skip_ws |
( |
const char |
str[] | ) |
|
|
static |
◆ to_upper()
◆ write_scalar()