|
| template<typename DestEncoding , typename SourceEncoding > |
| static bool | CanConvertChar (SourceEncoding Ch) |
| | Tests whether a particular character can be converted to the destination encoding. 更多...
|
| |
| template<typename SourceEncoding , typename DestEncoding > |
| static FORCEINLINE TEnableIf< TAreEncodingsCompatible< SourceEncoding, DestEncoding >::Value, DestEncoding * >::Type | Convert (DestEncoding *Dest, int32 DestSize, const SourceEncoding *Src, int32 SrcSize, DestEncoding BogusChar=(DestEncoding)'?') |
| | Converts the [Src, Src+SrcSize) string range from SourceChar to DestChar and writes it to the [Dest, Dest+DestSize) range. 更多...
|
| |
| template<typename SourceEncoding , typename DestEncoding > |
| static TEnableIf<!TAreEncodingsCompatible< SourceEncoding, DestEncoding >::Value &&TIsFixedWidthEncoding< SourceEncoding >::Value, DestEncoding * >::Type | Convert (DestEncoding *Dest, int32 DestSize, const SourceEncoding *Src, int32 SrcSize, DestEncoding BogusChar=(DestEncoding)'?') |
| | Converts the [Src, Src+SrcSize) string range from SourceEncoding to DestEncoding and writes it to the [Dest, Dest+DestSize) range. 更多...
|
| |
| template<typename DestEncoding , typename SourceEncoding > |
| static TEnableIf< TIsFixedWidthEncoding< SourceEncoding >::Value &&TIsFixedWidthEncoding< DestEncoding >::Value, int32 >::Type | ConvertedLength (const SourceEncoding *Src, int32 SrcSize) |
| | Returns the required buffer length for the [Src, Src+SrcSize) string when converted to the DestChar encoding. 更多...
|
| |
| template<typename Encoding > |
| static const TCHAR * | GetEncodingTypeName () |
| | Returns the string representing the name of the given encoding type. 更多...
|
| |
|
template<> |
| bool | IsValidChar (ANSICHAR Ch) |
| | Specialization of IsValidChar for ANSICHARs.
|
| |
| template<typename Encoding > |
| static bool | IsValidChar (Encoding Ch) |
| | Tests whether a particular character is a valid member of its encoding. 更多...
|
| |
Generic string implementation for most platforms
template<typename SourceEncoding , typename DestEncoding >
| static FORCEINLINE TEnableIf< TAreEncodingsCompatible< SourceEncoding, DestEncoding >::Value, DestEncoding * >::Type FGenericPlatformString::Convert |
( |
DestEncoding * |
Dest, |
|
|
int32 |
DestSize, |
|
|
const SourceEncoding * |
Src, |
|
|
int32 |
SrcSize, |
|
|
DestEncoding |
BogusChar = (DestEncoding)'?' |
|
) |
| |
|
inlinestatic |
Converts the [Src, Src+SrcSize) string range from SourceChar to DestChar and writes it to the [Dest, Dest+DestSize) range.
The Src range should contain a null terminator if a null terminator is required in the output. If the Dest range is not big enough to hold the converted output, NULL is returned. In this case, nothing should be assumed about the contents of Dest.
- 参数
-
| Dest | The start of the destination buffer. |
| DestSize | The size of the destination buffer. |
| Src | The start of the string to convert. |
| SrcSize | The number of Src elements to convert. |
| BogusChar | The char to use when the conversion process encounters a character it cannot convert. |
- 返回
- A pointer to one past the last-written element.
template<typename SourceEncoding , typename DestEncoding >
| static TEnableIf<!TAreEncodingsCompatible< SourceEncoding, DestEncoding >::Value &&TIsFixedWidthEncoding< SourceEncoding >::Value, DestEncoding * >::Type FGenericPlatformString::Convert |
( |
DestEncoding * |
Dest, |
|
|
int32 |
DestSize, |
|
|
const SourceEncoding * |
Src, |
|
|
int32 |
SrcSize, |
|
|
DestEncoding |
BogusChar = (DestEncoding)'?' |
|
) |
| |
|
inlinestatic |
Converts the [Src, Src+SrcSize) string range from SourceEncoding to DestEncoding and writes it to the [Dest, Dest+DestSize) range.
The Src range should contain a null terminator if a null terminator is required in the output. If the Dest range is not big enough to hold the converted output, NULL is returned. In this case, nothing should be assumed about the contents of Dest.
- 参数
-
| Dest | The start of the destination buffer. |
| DestSize | The size of the destination buffer. |
| Src | The start of the string to convert. |
| SrcSize | The number of Src elements to convert. |
| BogusChar | The char to use when the conversion process encounters a character it cannot convert. |
- 返回
- A pointer to one past the last-written element.
template<typename DestEncoding , typename SourceEncoding >
| static TEnableIf< TIsFixedWidthEncoding< SourceEncoding >::Value &&TIsFixedWidthEncoding< DestEncoding >::Value, int32 >::Type FGenericPlatformString::ConvertedLength |
( |
const SourceEncoding * |
Src, |
|
|
int32 |
SrcSize |
|
) |
| |
|
inlinestatic |
Returns the required buffer length for the [Src, Src+SrcSize) string when converted to the DestChar encoding.
The Src range should contain a null terminator if a null terminator is required in the output.
- 参数
-
| Src | The start of the string to convert. |
| SrcSize | The number of Src elements to convert. |
- 返回
- The number of DestChar elements that Src will be converted into.