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) |
|
◆ find_flag()
static const char * find_flag |
( |
const char |
str[], |
|
|
bool * |
value |
|
) |
| |
|
static |
Definition at line 95 of file SkParsePath.cpp.
95 {
96 if (!str) {
97 return nullptr;
98 }
99 if (str[0] != '1' && str[0] != '0') {
100 return nullptr;
101 }
102 *
value = str[0] !=
'0';
104 return str;
105}
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 64 of file SkParsePath.cpp.
65 {
67 if (isRelative) {
68 for (
int index = 0; index <
count; index++) {
69 value[index].fX += relative->
fX;
70 value[index].fY += relative->
fY;
71 }
72 }
73 return str;
74}
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 78 of file SkParsePath.cpp.
79 {
81 if (!str) {
82 return nullptr;
83 }
84 if (isRelative) {
86 }
88 return str;
89}
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()