-
首页
-
C4D R23.110 C++ SDK
UnicodeUtils Class Reference
系统
#include <unicodeutils.h>
详细描述
This class handles unicode decompositions and correct string comparison using decomposition informations.
Public Types
|
using
|
DecompositionArray
=
BaseArray
<
Utf32Char
, 1,
BASEARRAYFLAGS::MOVEANDCOPYOBJECTS
,
FixedBufferAllocator
<
Utf32Char
, 8,
DefaultAllocator
> >
|
using
|
DecompositionHfsArray
=
BaseArray
<
Utf16Char
, 1,
BASEARRAYFLAGS::MOVEANDCOPYOBJECTS
,
FixedBufferAllocator
<
Utf16Char
, 8,
DefaultAllocator
> >
|
Member Typedef Documentation
◆
DecompositionArray
Decomposed representation of a unicode character.
◆
DecompositionHfsArray
成员函数文档编制
◆
MAXON_INTERFACE_NONVIRTUAL()
◆
DecomposeStringHfs()
Normalize a string to HFS+ decomposition.
◆
DecomposeString()
Normalize a string to HFS+ decomposition.
◆
GetUnicodeVersion()
Returns the version of Unicode database used internally.
-
返回
-
The version, e.g:
String
("8.0.0")
◆
NormalizeString()
Normalize a string.
◆
UniCharDecomposition()
Breaks a unicode character into the decomposited properties. This is e.g. useful for sorting algorithms. A german 'A' umlaut will be decomposed to 'A' and '..'
-
参数
-
[in]
|
chr
|
Unicode character to be decomposited.
|
[out]
|
res_decomp
|
Array
with the decomposited character elements.
|
-
返回
-
True if the operation was successful.
◆
UniCharHfsDecomposition()
Breaks a unicode character into the decomposited properties. This is e.g. useful for sorting algorithms. A german 'A' umlaut will be decomposed to 'A' and '..'
-
参数
-
[in]
|
chr
|
Unicode character to be decomposited.
|
[out]
|
res_decomp
|
Array
with the decomposited character elements.
|
-
返回
-
True if the operation was successful.
◆
UniCodeCompare()
Compares two unicode characters. this function uses the decomposition properties to do advanced unicode sorting.
-
另请参阅
-
UniCharDecomposition()
.
-
参数
-
[in]
|
a
|
First character to compare.
|
[in]
|
b
|
Second character to compare.
|
-
返回
-
COMPARERESULT of the operation.
◆
GetCharacterType()
Returns the type of a given unicode char. This can be used to determine if a character is a letter, number or symbol
-
参数
-
[in]
|
chr
|
Character to find.
|
-
返回
-
CHARACTERTYPE of the character.
◆
UpperCase()
Returns the uppercase of a given unicode char.
-
参数
-
[in]
|
chr
|
Character to convert to uppercase.
|
-
返回
-
Uppercase character of chr.
◆
TitleCase()
Returns the titlecase version of a given unicode char.
-
参数
-
[in]
|
chr
|
Character to convert to titlecase.
|
-
返回
-
Titlecase character of chr.
◆
LowerCase()
Returns the lowercase version of a given unicode char.
-
参数
-
[in]
|
chr
|
Character to convert to lowercase.
|
-
返回
-
Lowercase character of chr.