Lines Matching refs:bit
359 #define bit(name) (1 << name) macro
361 #define UPPERMASK bit(UnicodeType::UPPERCASE_LETTER)
363 #define LOWERMASK bit(UnicodeType::LOWERCASE_LETTER)
365 #define TITLEMASK bit(UnicodeType::TITLECASE_LETTER)
367 #define DIGITMASK bit(UnicodeType::DECIMAL_DIGIT_NUMBER)|\
368 bit(UnicodeType::LETTER_NUMBER)|\
369 bit(UnicodeType::OTHER_NUMBER)
372 bit(UnicodeType::MODIFIER_LETTER)|\
373 bit(UnicodeType::OTHER_LETTER)
376 bit(UnicodeType::NON_SPACING_MARK)|\
377 bit(UnicodeType::ENCLOSING_MARK)|\
378 bit(UnicodeType::COMBINING_SPACING_MARK)
380 #define SPACEMASK bit(UnicodeType::SPACE_SEPARATOR)|\
381 bit(UnicodeType::LINE_SEPARATOR)|\
382 bit(UnicodeType::PARAGRAPH_SEPARATOR)
384 #define PUNCTUATIONMASK bit(UnicodeType::DASH_PUNCTUATION)|\
385 bit(UnicodeType::INITIAL_PUNCTUATION)|\
386 bit(UnicodeType::FINAL_PUNCTUATION)|\
387 bit(UnicodeType::CONNECTOR_PUNCTUATION)|\
388 bit(UnicodeType::OTHER_PUNCTUATION)
390 #define SYMBOLMASK bit(UnicodeType::MATH_SYMBOL)|\
391 bit(UnicodeType::CURRENCY_SYMBOL)|\
392 bit(UnicodeType::MODIFIER_SYMBOL)|\
393 bit(UnicodeType::OTHER_SYMBOL)
397 #define CONTROLMASK bit(UnicodeType::CONTROL)|\
398 bit(UnicodeType::FORMAT)|\
399 bit(UnicodeType::LINE_SEPARATOR)|\
400 bit(UnicodeType::PARAGRAPH_SEPARATOR)
404 return (bit(getUnicodeType(ch)) & (mask)) != 0;\
419 #define CONTROLSPACE bit(0x09)|bit(0x0a)|bit(0x0b)|bit(0x0c)|bit(0x0d)|\ in IsType()
420 bit(0x1c)|bit(0x1d)|bit(0x1e)|bit(0x1f) in IsType()
423 return (ch != 0xa0 && isSpace(ch)) || (ch <= 0x1F && (bit(ch) & (CONTROLSPACE))); in IsType()