#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTo.h"
#include "include/utils/SkParse.h"
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <string>
Go to the source code of this file.
◆ is_between()
static bool is_between |
( |
int |
c, |
|
|
int |
min, |
|
|
int |
max |
|
) |
| |
|
inlinestatic |
Definition at line 19 of file SkParse.cpp.
20{
21 return (
unsigned)(c -
min) <= (
unsigned)(
max -
min);
22}
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 29 of file SkParse.cpp.
30{
32}
static bool is_between(int c, int min, int max)
◆ is_hex()
static bool is_hex |
( |
int |
c | ) |
|
|
inlinestatic |
◆ is_sep()
static bool is_sep |
( |
int |
c | ) |
|
|
inlinestatic |
Definition at line 34 of file SkParse.cpp.
35{
36 return is_ws(c) || c ==
',' || c ==
';';
37}
◆ is_ws()
static bool is_ws |
( |
int |
c | ) |
|
|
inlinestatic |
◆ lookup_str()
static bool lookup_str |
( |
const char |
str[], |
|
|
const char ** |
table, |
|
|
int |
count |
|
) |
| |
|
static |
Definition at line 252 of file SkParse.cpp.
253{
256 return true;
257 return false;
258}
◆ skip_sep()
static const char * skip_sep |
( |
const char |
str[] | ) |
|
|
static |
Definition at line 64 of file SkParse.cpp.
65{
68 str++;
69 return str;
70}
static bool is_sep(int c)
◆ skip_ws()
static const char * skip_ws |
( |
const char |
str[] | ) |
|
|
static |
Definition at line 56 of file SkParse.cpp.
57{
60 str++;
61 return str;
62}
◆ to_hex()
Definition at line 39 of file SkParse.cpp.
40{
42 return c - '0';
43
44 c |= 0x20;
46 return c + 10 - 'a';
47 else
48 return -1;
49}
static bool is_digit(int c)