u5e
UnicodeTextC++Library
canonical_composition_mapping.hpp
1 #ifndef INCLUDED_U5E_PROPS_CANONICAL_COMPOSITION_MAPPING
2 #define INCLUDED_U5E_PROPS_CANONICAL_COMPOSITION_MAPPING
3 
4 namespace u5e {
5  /**
6  * \brief codepoint property handling
7  */
8  namespace props {
9  /**
10  * \brief Derived property for canonical composition
11  *
12  * This has the fully resolved canonical composition for
13  * characters, including the composition exclusions specified in
14  * the standard.
15  */
17  public:
18  /**
19  * Given a pair of input codepoints a and b returns whether or
20  * not that pair has a canonical composition. The composed
21  * codepoint is returned via the r_composed pointer if that is
22  * the case.
23  *
24  * \param a the first codepoint in the decomposed pair
25  *
26  * \param b the second codepoint in the decomposed pair
27  *
28  * \param r_composed the pointer where the composed codepoint
29  * will be set if the return is true.
30  */
31  static bool resolve(int a, int b, int* r_composed);
32  };
33  }
34 }
35 
36 #endif
main u5e namespace
static bool resolve(int a, int b, int *r_composed)
Derived property for canonical composition.
codepoint property handling