Home
last modified time | relevance | path

Searched refs:StreamingUtf8Validator (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/base/i18n/
Dstreaming_utf8_validator_unittest.cc45 const StreamingUtf8Validator::State VALID_ENDPOINT =
46 StreamingUtf8Validator::VALID_ENDPOINT;
47 const StreamingUtf8Validator::State VALID_MIDPOINT =
48 StreamingUtf8Validator::VALID_MIDPOINT;
49 const StreamingUtf8Validator::State INVALID = StreamingUtf8Validator::INVALID;
80 StreamingUtf8Validator validator; in TestNumber()
237 StreamingUtf8Validator::State expected) { in CheckRange()
239 StreamingUtf8Validator validator; in CheckRange()
251 StreamingUtf8Validator::State expected) { in CheckRangeByteAtATime()
253 StreamingUtf8Validator validator; in CheckRangeByteAtATime()
[all …]
Dstreaming_utf8_validator.cc24 StreamingUtf8Validator::State StreamingUtf8Validator::AddBytes(const char* data, in AddBytes()
50 void StreamingUtf8Validator::Reset() { in Reset()
54 bool StreamingUtf8Validator::Validate(const std::string& string) { in Validate()
55 return StreamingUtf8Validator().AddBytes(string.data(), string.size()) == in Validate()
Dstreaming_utf8_validator.h24 class BASE_I18N_EXPORT StreamingUtf8Validator {
36 StreamingUtf8Validator() : state_(0u) {} in StreamingUtf8Validator() function
61 DISALLOW_COPY_AND_ASSIGN(StreamingUtf8Validator);
Dstreaming_utf8_validator_perftest.cc65 DCHECK(StreamingUtf8Validator::Validate(previous)); in NextUtf8Sequence()
78 DCHECK(StreamingUtf8Validator::Validate(next)) in NextUtf8Sequence()
145 {&StreamingUtf8Validator::Validate, "StreamingUtf8Validator"},