FGenericPlatformString

Generic string implementation for most platforms

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformString.h

Include

#include "GenericPlatform/GenericPlatformString.h"

Syntax

struct FGenericPlatformString : public FGenericPlatformStricmp

Remarks

Generic string implementation for most platforms

Functions

Name Description

Public function Static

constexpr bo...

 

CanConvertCodepoint

(
    SourceEncoding Codepoint
)

Tests whether a particular codepoint can be converted to the destination encoding.

Public function Static

int32

 

ConvertedLength

(
    const SourceEncoding* Src,
    int32 SrcSize
)

Returns the required buffer length for the [Src, Src+SrcSize) string when converted to the DestChar encoding.

Public function Static

const ANSICH...

 

GetEncodingName()

Public function

const TCHAR ...

 

GetEncodingTypeName()

Public function

const TCHAR ...

 

GetEncodingTypeName()

Public function

const TCHAR ...

 

GetEncodingTypeName()

Public function

const TCHAR ...

 

GetEncodingTypeName()

Public function Static

const TCHAR ...

 

GetEncodingTypeName()

Returns the string representing the name of the given encoding type.

Public function Static

constexpr bo...

 

IsCharEncodingCompatibleWith()

Function which returns whether one encoding type is binary compatible with another.

Public function Static

constexpr bo...

 

IsCharEncodingSimplyConvertibleTo()

Tests whether you can simply (i.e. by assignment) encode code units from the source encoding as the destination encoding.

Public function Static

constexpr bo...

 

IsFixedWidthEncoding()

Tests whether an encoding has fixed-width characters

Public function Static

int32

 

Strncmp

(
    const WIDECHAR* String1,
    const UTF8CHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const ANSICHAR* String1,
    const ANSICHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const WIDECHAR* String1,
    const ANSICHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const UTF8CHAR* String1,
    const ANSICHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const ANSICHAR* String1,
    const WIDECHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const WIDECHAR* String1,
    const WIDECHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const UTF8CHAR* String1,
    const WIDECHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const ANSICHAR* String1,
    const UTF8CHAR* String2,
    SIZE_T Count
)

Public function Static

int32

 

Strncmp

(
    const UTF8CHAR* String1,
    const UTF8CHAR* String2,
    SIZE_T Count
)

Constants

Name

Description

IsUnicodeEncoded

True if the encoding type of the string is some form of unicode

Deprecated Functions

Name Description

Public function Static

DestEncoding...

 

Convert

(
    DestEncoding* Dest,
    int32 DestSize,
    const SourceEncoding* Src,
    int32 SrcSize
)

TAreEncodingsCompatible is deprecated, use IsCharEncodingCompatibleWith() instead.