19 return *(
const char*
const*)((
const char*)
base + index * elemSize);
23 size_t target_len,
size_t elemSize)
35 int mid = (hi + lo) >> 1;
38 int cmp = strncmp(elem,
target, target_len);
41 else if (cmp > 0 || strlen(elem) > target_len)
48 int cmp = strncmp(elem,
target, target_len);
49 if (cmp || strlen(elem) > target_len)
65 size_t len,
size_t elemSize)
102 for (
int i = (
int)(
len - 1);
i >= 0; --
i) {
104 if ((c & 0x80) == 0) {
114 if (fLC != fStorage) {
SK_API void sk_free(void *)
static void * sk_malloc_throw(size_t size)
int SkStrLCSearch(const char *const *base, int count, const char target[], size_t len, size_t elemSize)
static const char * index_into_base(const char *const *base, int index, size_t elemSize)
int SkStrSearch(const char *const *base, int count, const char target[], size_t target_len, size_t elemSize)
SkAutoAsciiToLC(const char str[], size_t len=(size_t) -1)