Home | History | Annotate | Download | only in share

Lines Matching refs:ch

32 // z/c/s is for Zh/Ch/Sh
121 char ch = kHalfId2Sc_[*splid];
122 if (ch > 'Z') {
125 if (szm_is_enabled(ch)) {
127 } else if (is_yunmu_char(ch)) {
157 // So that Zh/Ch/Sh(whose char is z/c/s) can be matched with Z/C/S.
170 char ch = kHalfId2Sc_[splid];
171 // If ch >= 'a', that means the half id is one of Zh/Ch/Sh
172 if (ch >= 'a') {
176 return char_flags_[ch - 'A'] & kHalfIdYunmuMask;
179 bool SpellingTrie::is_shengmu_char(char ch) const {
180 return char_flags_[ch - 'A'] & kHalfIdShengmuMask;
183 bool SpellingTrie::is_yunmu_char(char ch) const {
184 return char_flags_[ch - 'A'] & kHalfIdYunmuMask;
187 bool SpellingTrie::is_szm_char(char ch) const {
188 return is_shengmu_char(ch) || is_yunmu_char(ch);
191 bool SpellingTrie::szm_is_enabled(char ch) const {
192 return char_flags_[ch - 'A'] & kHalfIdSzmMask;
197 for (char ch = 'A'; ch <= 'Z'; ch++) {
198 if (is_shengmu_char(ch))
199 char_flags_[ch - 'A'] = char_flags_[ch - 'A'] | kHalfIdSzmMask;
202 for (char ch = 'A'; ch <= 'Z'; ch++) {
203 if (is_shengmu_char(ch))
204 char_flags_[ch - 'A'] = char_flags_[ch - 'A'] & (kHalfIdSzmMask ^ 0xff);
211 for (char ch = 'A'; ch <= 'Z'; ch++) {
212 if (is_yunmu_char(ch))
213 char_flags_[ch - 'A'] = char_flags_[ch - 'A'] | kHalfIdSzmMask;
216 for (char ch = 'A'; ch <= 'Z'; ch++) {
217 if (is_yunmu_char(ch))
218 char_flags_[ch - 'A'] = char_flags_[ch - 'A'] & (kHalfIdSzmMask ^ 0xff);
223 bool SpellingTrie::is_szm_enabled(char ch) const {
224 return char_flags_[ch - 'A'] & kHalfIdSzmMask;
733 snprintf(splstr_queried_, spelling_size_, "%s", "Ch");