Search Results for

    Show / Hide Table of Contents

    Class StringUtils

    The string operations utilities.

    Inheritance
    StringUtils
    Assembly: FlaxEngine.dll
    File: Engine/Platform/StringUtils.h
    Syntax
    public class StringUtils

    Methods

    Compare(const Char* str1, const Char* str2)

    Declaration
    public static int32 Compare(const Char* str1, const Char* str2)
    Parameters
    Char str1

    Char str2

    Returns
    int32

    Compare(const char* str1, const char* str2)

    Declaration
    public static int32 Compare(const char* str1, const char* str2)
    Parameters
    char str1

    char str2

    Returns
    int32

    Compare(const Char* str1, const Char* str2, int32 maxCount)

    Declaration
    public static int32 Compare(const Char* str1, const Char* str2, int32 maxCount)
    Parameters
    Char str1

    Char str2

    int32 maxCount

    Returns
    int32

    Compare(const char* str1, const char* str2, int32 maxCount)

    Declaration
    public static int32 Compare(const char* str1, const char* str2, int32 maxCount)
    Parameters
    char str1

    char str2

    int32 maxCount

    Returns
    int32

    CompareIgnoreCase(const Char* str1, const Char* str2)

    Declaration
    public static int32 CompareIgnoreCase(const Char* str1, const Char* str2)
    Parameters
    Char str1

    Char str2

    Returns
    int32

    CompareIgnoreCase(const char* str1, const char* str2)

    Declaration
    public static int32 CompareIgnoreCase(const char* str1, const char* str2)
    Parameters
    char str1

    char str2

    Returns
    int32

    CompareIgnoreCase(const Char* str1, const Char* str2, int32 maxCount)

    Declaration
    public static int32 CompareIgnoreCase(const Char* str1, const Char* str2, int32 maxCount)
    Parameters
    Char str1

    Char str2

    int32 maxCount

    Returns
    int32

    CompareIgnoreCase(const char* str1, const char* str2, int32 maxCount)

    Declaration
    public static int32 CompareIgnoreCase(const char* str1, const char* str2, int32 maxCount)
    Parameters
    char str1

    char str2

    int32 maxCount

    Returns
    int32

    ConvertANSI2UTF16(const char* from, Char* to, int32 fromLength, int32& toLength)

    Declaration
    public static void ConvertANSI2UTF16(const char* from, Char* to, int32 fromLength, int32& toLength)
    Parameters
    char from

    Char to

    int32 fromLength

    int32 toLength

    ConvertUTF162ANSI(const Char* from, char* to, int32 len)

    Declaration
    public static void ConvertUTF162ANSI(const Char* from, char* to, int32 len)
    Parameters
    Char from

    char to

    int32 len

    ConvertUTF162UTF8(const Char* from, char* to, int32 fromLength, int32& toLength)

    Declaration
    public static void ConvertUTF162UTF8(const Char* from, char* to, int32 fromLength, int32& toLength)
    Parameters
    Char from

    char to

    int32 fromLength

    int32 toLength

    ConvertUTF162UTF8(const Char* from, int32 fromLength, int32& toLength)

    Declaration
    public static char* ConvertUTF162UTF8(const Char* from, int32 fromLength, int32& toLength)
    Parameters
    Char from

    int32 fromLength

    int32 toLength

    Returns
    char

    ConvertUTF82UTF16(const char* from, Char* to, int32 fromLength, int32& toLength)

    Declaration
    public static void ConvertUTF82UTF16(const char* from, Char* to, int32 fromLength, int32& toLength)
    Parameters
    char from

    Char to

    int32 fromLength

    int32 toLength

    ConvertUTF82UTF16(const char* from, int32 fromLength, int32& toLength)

    Declaration
    public static Char* ConvertUTF82UTF16(const char* from, int32 fromLength, int32& toLength)
    Parameters
    char from

    int32 fromLength

    int32 toLength

    Returns
    Char

    Copy(Char* dst, const Char* src)

    Declaration
    public static Char* Copy(Char* dst, const Char* src)
    Parameters
    Char dst

    Char src

    Returns
    Char

    Copy(Char* dst, const Char* src, int32 count)

    Declaration
    public static Char* Copy(Char* dst, const Char* src, int32 count)
    Parameters
    Char dst

    Char src

    int32 count

    Returns
    Char

    Find(const Char* str, const Char* toFind)

    Declaration
    public static Char* Find(const Char* str, const Char* toFind)
    Parameters
    Char str

    Char toFind

    Returns
    Char

    Find(const char* str, const char* toFind)

    Declaration
    public static char* Find(const char* str, const char* toFind)
    Parameters
    char str

    char toFind

    Returns
    char

    FindIgnoreCase(const Char* str, const Char* toFind)

    Declaration
    public static Char* FindIgnoreCase(const Char* str, const Char* toFind)
    Parameters
    Char str

    Char toFind

    Returns
    Char

    FindIgnoreCase(const char* str, const char* toFind)

    Declaration
    public static char* FindIgnoreCase(const char* str, const char* toFind)
    Parameters
    char str

    char toFind

    Returns
    char

    GetDirectoryName(const StringView& path)

    Gets the directory name of the specified path string.

    Declaration
    public static StringView GetDirectoryName(const StringView& path)
    Parameters
    StringView path

    The path string from which to obtain the directory name.

    Returns
    StringView

    Directory name.

    GetFileName(const StringView& path)

    Gets the file name and extension of the specified path string

    Declaration
    public static StringView GetFileName(const StringView& path)
    Parameters
    StringView path

    The path string from which to obtain the file name and extension.

    Returns
    StringView

    File name with extension.

    GetFileNameWithoutExtension(const StringView& path)

    Gets the file name without extension of the specified path string.

    Declaration
    public static StringView GetFileNameWithoutExtension(const StringView& path)
    Parameters
    StringView path

    The path string from which to obtain the file name.

    Returns
    StringView

    File name without extension.

    GetHashCode(const CharType* str)

    Calculates the hash code for input string.

    Declaration
    public static uint32 GetHashCode(const CharType* str)
    Parameters
    CharType str

    The pointer to the input characters sequence.

    Returns
    uint32

    The unique hash value.

    Type Parameters
    typename CharType

    GetHashCode(const CharType* str, int32 length)

    Calculates the hash code for input string.

    Declaration
    public static uint32 GetHashCode(const CharType* str, int32 length)
    Parameters
    CharType str

    The pointer to the input characters sequence.

    int32 length

    The input sequence length (amount of characters).

    Returns
    uint32

    The unique hash value.

    Type Parameters
    typename CharType

    GetPathWithoutExtension(const StringView& path)

    Gets the path without extension.

    Declaration
    public static StringView GetPathWithoutExtension(const StringView& path)
    Parameters
    StringView path

    The path string.

    Returns
    StringView

    The path string without extension.

    GetZZString(const Char* str)

    Declaration
    public static String GetZZString(const Char* str)
    Parameters
    Char str

    Returns
    String

    HexDigit(Char c)

    Declaration
    public static int32 HexDigit(Char c)
    Parameters
    Char c

    Returns
    int32

    IsAlnum(char c)

    Declaration
    public static bool IsAlnum(char c)
    Parameters
    char c

    Returns
    bool

    IsAlnum(Char c)

    Declaration
    public static bool IsAlnum(Char c)
    Parameters
    Char c

    Returns
    bool

    IsAlpha(char c)

    Declaration
    public static bool IsAlpha(char c)
    Parameters
    char c

    Returns
    bool

    IsAlpha(Char c)

    Declaration
    public static bool IsAlpha(Char c)
    Parameters
    Char c

    Returns
    bool

    IsDigit(char c)

    Declaration
    public static bool IsDigit(char c)
    Parameters
    char c

    Returns
    bool

    IsDigit(Char c)

    Declaration
    public static bool IsDigit(Char c)
    Parameters
    Char c

    Returns
    bool

    IsHexDigit(char c)

    Declaration
    public static bool IsHexDigit(char c)
    Parameters
    char c

    Returns
    bool

    IsHexDigit(Char c)

    Declaration
    public static bool IsHexDigit(Char c)
    Parameters
    Char c

    Returns
    bool

    IsLower(char c)

    Declaration
    public static bool IsLower(char c)
    Parameters
    char c

    Returns
    bool

    IsLower(Char c)

    Declaration
    public static bool IsLower(Char c)
    Parameters
    Char c

    Returns
    bool

    IsPunct(char c)

    Declaration
    public static bool IsPunct(char c)
    Parameters
    char c

    Returns
    bool

    IsPunct(Char c)

    Declaration
    public static bool IsPunct(Char c)
    Parameters
    Char c

    Returns
    bool

    IsUpper(char c)

    Declaration
    public static bool IsUpper(char c)
    Parameters
    char c

    Returns
    bool

    IsUpper(Char c)

    Declaration
    public static bool IsUpper(Char c)
    Parameters
    Char c

    Returns
    bool

    IsWhitespace(char c)

    Declaration
    public static bool IsWhitespace(char c)
    Parameters
    char c

    Returns
    bool

    IsWhitespace(Char c)

    Declaration
    public static bool IsWhitespace(Char c)
    Parameters
    Char c

    Returns
    bool

    Length(const Char* str)

    Declaration
    public static int32 Length(const Char* str)
    Parameters
    Char str

    Returns
    int32

    Length(const char* str)

    Declaration
    public static int32 Length(const char* str)
    Parameters
    char str

    Returns
    int32

    Parse(const Char* str, float* result)

    Declaration
    public static bool Parse(const Char* str, float* result)
    Parameters
    Char str

    float result

    Returns
    bool

    Parse(const char* str, float* result)

    Declaration
    public static bool Parse(const char* str, float* result)
    Parameters
    char str

    float result

    Returns
    bool

    Parse(const T* str, int32 length, int64* result)

    Declaration
    public static bool Parse(const T* str, int32 length, int64* result)
    Parameters
    T str

    int32 length

    int64 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, int32 length, uint64* result)

    Declaration
    public static bool Parse(const T* str, int32 length, uint64* result)
    Parameters
    T str

    int32 length

    uint64 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, U* result)

    Declaration
    public static bool Parse(const T* str, U* result)
    Parameters
    T str

    U result

    Returns
    bool

    Type Parameters
    typename T

    typename U

    Parse(const T* str, uint32 length, int16* result)

    Declaration
    public static bool Parse(const T* str, uint32 length, int16* result)
    Parameters
    T str

    uint32 length

    int16 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, uint32 length, int32* result)

    Declaration
    public static bool Parse(const T* str, uint32 length, int32* result)
    Parameters
    T str

    uint32 length

    int32 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, uint32 length, int8* result)

    Declaration
    public static bool Parse(const T* str, uint32 length, int8* result)
    Parameters
    T str

    uint32 length

    int8 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, uint32 length, uint16* result)

    Declaration
    public static bool Parse(const T* str, uint32 length, uint16* result)
    Parameters
    T str

    uint32 length

    uint16 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, uint32 length, uint32* result)

    Declaration
    public static bool Parse(const T* str, uint32 length, uint32* result)
    Parameters
    T str

    uint32 length

    uint32 result

    Returns
    bool

    Type Parameters
    typename T

    Parse(const T* str, uint32 length, uint8* result)

    Declaration
    public static bool Parse(const T* str, uint32 length, uint8* result)
    Parameters
    T str

    uint32 length

    uint8 result

    Returns
    bool

    Type Parameters
    typename T

    ParseHex(const T* str, int32 length, uint32* result)

    Declaration
    public static bool ParseHex(const T* str, int32 length, uint32* result)
    Parameters
    T str

    int32 length

    uint32 result

    Returns
    bool

    Type Parameters
    typename T

    ParseHex(const T* str, uint32* result)

    Declaration
    public static bool ParseHex(const T* str, uint32* result)
    Parameters
    T str

    uint32 result

    Returns
    bool

    Type Parameters
    typename T

    PathRemoveRelativeParts(String& path)

    Normalizes path string and removes any relative parts such as /../ and /./.

    Declaration
    public static void PathRemoveRelativeParts(String& path)
    Parameters
    String path

    The input and output string with path to process.

    ToLower(char c)

    Declaration
    public static char ToLower(char c)
    Parameters
    char c

    Returns
    char

    ToLower(Char c)

    Declaration
    public static Char ToLower(Char c)
    Parameters
    Char c

    Returns
    Char

    ToString(double value)

    Declaration
    public static String ToString(double value)
    Parameters
    double value

    Returns
    String

    ToString(float value)

    Declaration
    public static String ToString(float value)
    Parameters
    float value

    Returns
    String

    ToString(int32 value)

    Declaration
    public static String ToString(int32 value)
    Parameters
    int32 value

    Returns
    String

    ToString(int64 value)

    Declaration
    public static String ToString(int64 value)
    Parameters
    int64 value

    Returns
    String

    ToString(uint32 value)

    Declaration
    public static String ToString(uint32 value)
    Parameters
    uint32 value

    Returns
    String

    ToString(uint64 value)

    Declaration
    public static String ToString(uint64 value)
    Parameters
    uint64 value

    Returns
    String

    ToUpper(char c)

    Declaration
    public static char ToUpper(char c)
    Parameters
    char c

    Returns
    char

    ToUpper(Char c)

    Declaration
    public static Char ToUpper(Char c)
    Parameters
    Char c

    Returns
    Char

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat