Lines Matching refs:word
34 ByteStringView CMap_GetString(const ByteStringView& word) {
35 if (word.GetLength() <= 2)
37 return word.Right(word.GetLength() - 2);
47 void CPDF_CMapParser::ParseWord(const ByteStringView& word) {
48 if (word.IsEmpty()) {
51 if (word == "begincidchar") {
54 } else if (word == "begincidrange") {
57 } else if (word == "endcidrange" || word == "endcidchar") {
59 } else if (word == "/WMode") {
61 } else if (word == "/Registry") {
63 } else if (word == "/Ordering") {
65 } else if (word == "/Supplement") {
67 } else if (word == "begincodespacerange") {
70 } else if (word == "usecmap") {
72 m_CodePoints[m_CodeSeq] = GetCode(word);
103 m_pCMap->SetCharset(CharsetFromOrdering(CMap_GetString(word)));
108 m_pCMap->SetVertical(GetCode(word) != 0);
111 if (word == "endcodespacerange") {
123 if (word.GetLength() == 0 || word[0] != '<') {
128 if (GetCodeRange(range, m_LastWord.AsStringView(), word))
134 m_LastWord = word;
137 uint32_t CPDF_CMapParser::GetCode(const ByteStringView& word) const {
138 if (word.IsEmpty())
142 if (word[0] == '<') {
143 for (size_t i = 1; i < word.GetLength() && std::isxdigit(word[i]); ++i) {
144 num = num * 16 + FXSYS_HexCharToInt(word[i]);
151 for (size_t i = 0; i < word.GetLength() && std::isdigit(word[i]); ++i) {
152 num = num * 10 + FXSYS_DecimalCharToInt(static_cast<wchar_t>(word[i]));