Пример #1
0
 static int
 isalnum(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_ALPHA)
            || (ascii_char_types[ch] & BOOST_CC_DIGIT);
 }
Пример #2
0
 static int
 toupper(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return islower(ch) ? (ch - 'a' + 'A') : ch;
 }
Пример #3
0
 static int
 isupper(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_UPPER);
 }
Пример #4
0
 static int
 isspace(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_SPACE);
 }
Пример #5
0
 static int
 ispunct(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_PUNCT);
 }
Пример #6
0
 static int
 islower(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_LOWER);
 }
Пример #7
0
 static int
 iscntrl(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_CTRL);
 }
Пример #8
0
 static int
 isxdigit(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_XDIGIT);
 }
Пример #9
0
 static int
 isalpha(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_ALPHA);
 }
Пример #10
0
 static bool
 isupper(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_UPPER) ? true : false;
 }
Пример #11
0
 static bool
 ischar(int ch)
 {
     return isascii_(ch);
 }
Пример #12
0
 static bool
 isspace(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_SPACE) ? true : false;
 }
Пример #13
0
 static bool
 ispunct(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_PUNCT) ? true : false;
 }
Пример #14
0
 static bool
 iscntrl(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_CTRL) ? true : false;
 }
Пример #15
0
 static bool
 isxdigit(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_XDIGIT) ? true : false;
 }
Пример #16
0
 static bool
 isalpha(int ch)
 {
     BOOST_ASSERT(isascii_(ch));
     return (ascii_char_types[ch] & BOOST_CC_ALPHA) ? true : false;
 }