mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
trunk/branch integration: source indentation
This commit is contained in:
parent
c349742cf5
commit
e0b35c7ef5
@ -1,7 +1,7 @@
|
||||
//
|
||||
// TypeList.h
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/include/Poco/TypeList.h#3 $
|
||||
// $Id: //poco/1.4/Foundation/include/Poco/TypeList.h#1 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Core
|
||||
@ -484,4 +484,4 @@ struct TypeAllReplacer<TypeList<Head, Tail>, T, R>
|
||||
} // namespace Poco
|
||||
|
||||
|
||||
#endif
|
||||
#endif // Foundation_TypeList_INCLUDED
|
||||
|
@ -201,6 +201,18 @@ public:
|
||||
/// Return the Unicode character properties for the
|
||||
/// character with the given Unicode value.
|
||||
|
||||
static bool isSpace(int ch);
|
||||
/// Returns true iff the given character is a separator.
|
||||
|
||||
static bool isDigit(int ch);
|
||||
/// Returns true iff the given character is a numeric character.
|
||||
|
||||
static bool isPunct(int ch);
|
||||
/// Returns true iff the given character is a punctuation character.
|
||||
|
||||
static bool isAlpha(int ch);
|
||||
/// Returns true iff the given character is a letter.
|
||||
|
||||
static bool isLower(int ch);
|
||||
/// Returns true iff the given character is a lowercase
|
||||
/// character.
|
||||
@ -221,6 +233,57 @@ public:
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// inlines
|
||||
//
|
||||
inline bool Unicode::isSpace(int ch)
|
||||
{
|
||||
CharacterProperties props;
|
||||
properties(ch, props);
|
||||
return props.category == UCP_SEPARATOR;
|
||||
}
|
||||
|
||||
|
||||
inline bool Unicode::isDigit(int ch)
|
||||
{
|
||||
CharacterProperties props;
|
||||
properties(ch, props);
|
||||
return props.category == UCP_NUMBER;
|
||||
}
|
||||
|
||||
|
||||
inline bool Unicode::isPunct(int ch)
|
||||
{
|
||||
CharacterProperties props;
|
||||
properties(ch, props);
|
||||
return props.category == UCP_PUNCTUATION;
|
||||
}
|
||||
|
||||
|
||||
inline bool Unicode::isAlpha(int ch)
|
||||
{
|
||||
CharacterProperties props;
|
||||
properties(ch, props);
|
||||
return props.category == UCP_LETTER;
|
||||
}
|
||||
|
||||
|
||||
inline bool Unicode::isLower(int ch)
|
||||
{
|
||||
CharacterProperties props;
|
||||
properties(ch, props);
|
||||
return props.category == UCP_LETTER && props.type == UCP_LOWER_CASE_LETTER;
|
||||
}
|
||||
|
||||
|
||||
inline bool Unicode::isUpper(int ch)
|
||||
{
|
||||
CharacterProperties props;
|
||||
properties(ch, props);
|
||||
return props.category == UCP_LETTER && props.type == UCP_UPPER_CASE_LETTER;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user