Searched refs:utf8_pos (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/third_party/brotli/src/brotli/enc/
H A Dliteral_cost.cc45 int utf8_pos = 0; local
48 utf8_pos = UTF8Position(last_c, c, 2);
49 ++counts[utf8_pos];
75 int utf8_pos = 0; local
78 ++histogram[utf8_pos][c];
79 ++in_window_utf8[utf8_pos];
80 utf8_pos = UTF8Position(last_c, c, max_utf8);
108 int utf8_pos = UTF8Position(last_c, c, max_utf8);
110 int histo = histogram[utf8_pos][data[masked_pos]];
114 float lit_cost = log2(static_cast<double>(in_window_utf8[utf8_pos])
[all...]
/external/chromium_org/components/query_parser/
H A Dsnippet.cc102 // utf8_pos: current offset in the utf8 string. This is modified and on return
109 int32_t* utf8_pos,
111 DCHECK(offset >= *utf8_pos && offset <= utf8_length);
114 while (*utf8_pos < offset) {
115 U8_NEXT(utf8_string, *utf8_pos, utf8_length, wide_char);
122 // position to |*utf8_pos| and move by |count| characters. |count| can
124 void MoveByNGraphemes(icu::BreakIterator* bi, int count, size_t* utf8_pos) { argument
126 // being set at or following |*utf8_pos| is exploited here.
130 bi->isBoundary(static_cast<int32_t>(*utf8_pos));
132 *utf8_pos
106 AdvanceAndReturnUTF16Pos(const char* utf8_string, int32_t utf8_length, int32_t offset, int32_t* utf8_pos, size_t* utf16_pos) argument
191 int32_t utf8_pos = 0; local
[all...]

Completed in 290 milliseconds