u5e
UnicodeTextC++Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
u5e
canonical_combining_order.hpp
1
#
ifndef
INCLUDED_U5E_CANONICAL_COMBINING_ORDER
2
#
define
INCLUDED_U5E_CANONICAL_COMBINING_ORDER
3
4
#
include
<
u5e
/
props
/
canonical_combining_class
.
hpp
>
5
6
namespace
u5e
{
7
8
/**
9
* \brief compare codepoints according to the canonical combining order
10
*
11
* This is intended to be used with std::sort on a utf32ne string type.
12
*/
13
inline
bool
canonical_combining_order
(
int
a,
int
b) {
14
return
15
props
::
canonical_combining_class
::
resolve
(
a
)
16
<
17
props
::
canonical_combining_class
::
resolve
(
b
)
;
18
}
19
}
20
21
#
endif
u5e::props::canonical_combining_class
Canonical_Combining_Class attribute.
Definition:
canonical_combining_class.hpp:12
u5e::props::canonical_combining_class::resolve
static int resolve(int input)
u5e
main u5e namespace
Definition:
basic_encodedstring.hpp:10
u5e::canonical_combining_order
bool canonical_combining_order(int a, int b)
compare codepoints according to the canonical combining order
Definition:
canonical_combining_order.hpp:13
u5e::props
codepoint property handling
Definition:
canonical_combining_class.hpp:8
Generated by
1.8.11