Search Results for

    Show / Hide Table of Contents

    Class StringAnsiView

    Represents static text view as a sequence of ANSI characters. Characters sequence might not be null-terminated.

    Inheritance
    StringViewBase
    StringAnsiView
    Inherited Members
    StringViewBase::_data
    StringViewBase::_length
    StringAnsiView
    StringViewBase::Compare(const StringViewBase& str, StringSearchCase searchCase=StringSearchCase::CaseSensitive)
    StringViewBase::DEPRECATED("Use GetText instead") const T* GetNonTerminatedText()
    StringViewBase::EndsWith(T c, StringSearchCase searchCase=StringSearchCase::IgnoreCase)
    StringViewBase::EndsWith(const StringViewBase& suffix, StringSearchCase searchCase=StringSearchCase::IgnoreCase)
    StringViewBase::Find(T c)
    StringViewBase::FindLast(T c)
    StringViewBase::Get()
    StringViewBase::GetText()
    StringViewBase::HasChars()
    StringViewBase::IsEmpty()
    StringViewBase::Length()
    StringViewBase::operator*()
    StringViewBase::operator=(const StringViewBase& other)
    StringViewBase::operator[](int32 index)
    StringViewBase::StartsWith(T c, StringSearchCase searchCase=StringSearchCase::IgnoreCase)
    StringViewBase::StartsWith(const StringViewBase& prefix, StringSearchCase searchCase=StringSearchCase::IgnoreCase)
    StringViewBase::StringViewBase()
    StringViewBase::StringViewBase(const T* data, int32 length)
    StringViewBase::StringViewBase(const StringViewBase& other)
    Assembly: FlaxEngine.dll
    File: Engine/Core/Types/StringView.h
    Syntax
    public class StringAnsiView : public StringViewBase

    Constructors

    StringAnsiView(const char* str)

    Initializes a new instance of the StringAnsiView class.

    Declaration
    public StringAnsiView(const char* str)
    Parameters
    char str

    The characters sequence.

    StringAnsiView(const StringAnsi& str)

    Initializes a new instance of the StringAnsiView class.

    Declaration
    public StringAnsiView(const StringAnsi& str)
    Parameters
    StringAnsi str

    The reference to the string.

    Fields

    Empty

    Instance of the empty string.

    Declaration
    public static StringAnsiView Empty
    Field Value
    StringAnsiView

    Methods

    EndsWith(const StringAnsiView& suffix, StringSearchCase searchCase=StringSearchCase::IgnoreCase)

    Declaration
    public bool EndsWith(const StringAnsiView& suffix, StringSearchCase searchCase=StringSearchCase::IgnoreCase) const
    Parameters
    StringAnsiView suffix

    StringSearchCase searchCase

    Returns
    bool

    operator!=(const char* other)

    Lexicographically test whether this string is not equivalent to the other given string (case sensitive).

    Declaration
    public bool operator!=(const char* other) const
    Parameters
    char other

    The other text.

    Returns
    bool

    True if this string is lexicographically is not equivalent to the other, otherwise false.

    operator!=(const StringAnsi& other)

    Lexicographically test whether this string is not equivalent to the other given string (case sensitive).

    Declaration
    public bool operator!=(const StringAnsi& other) const
    Parameters
    StringAnsi other

    The other text.

    Returns
    bool

    True if this string is lexicographically is not equivalent to the other, otherwise false.

    operator!=(const StringAnsiView& other)

    Lexicographically test whether this string is not equivalent to the other given string (case sensitive).

    Declaration
    public bool operator!=(const StringAnsiView& other) const
    Parameters
    StringAnsiView other

    The other text.

    Returns
    bool

    True if this string is lexicographically is not equivalent to the other, otherwise false.

    operator=(const char* str)

    Assigns the static string.

    Declaration
    public StringAnsiView operator=(const char* str)
    Parameters
    char str

    The other string.

    Returns
    StringAnsiView

    The reference to this object.

    operator==(const char* other)

    Lexicographically test whether this string is equivalent to the other given string (case sensitive).

    Declaration
    public bool operator==(const char* other) const
    Parameters
    char other

    The other text.

    Returns
    bool

    True if this string is lexicographically equivalent to the other, otherwise false.

    operator==(const StringAnsi& other)

    Lexicographically test whether this string is equivalent to the other given string (case sensitive).

    Declaration
    public bool operator==(const StringAnsi& other) const
    Parameters
    StringAnsi other

    The other text.

    Returns
    bool

    True if this string is lexicographically equivalent to the other, otherwise false.

    operator==(const StringAnsiView& other)

    Lexicographically test whether this string is equivalent to the other given string (case sensitive).

    Declaration
    public bool operator==(const StringAnsiView& other) const
    Parameters
    StringAnsiView other

    The other text.

    Returns
    bool

    True if this string is lexicographically equivalent to the other, otherwise false.

    StartsWith(const StringAnsiView& prefix, StringSearchCase searchCase=StringSearchCase::IgnoreCase)

    Declaration
    public bool StartsWith(const StringAnsiView& prefix, StringSearchCase searchCase=StringSearchCase::IgnoreCase) const
    Parameters
    StringAnsiView prefix

    StringSearchCase searchCase

    Returns
    bool

    StringAnsiView()

    Initializes a new instance of the StringView class.

    Declaration
    public constexpr StringAnsiView()
    Returns
    constexpr

    StringAnsiView(const char* str, int32 length)

    Initializes a new instance of the StringAnsiView class.

    Declaration
    public constexpr StringAnsiView(const char* str, int32 length)
    Parameters
    char str

    The characters sequence.

    int32 length

    The characters sequence length (excluding null-terminator character).

    Returns
    constexpr

    StringAnsiView(const StringAnsiView& str)

    Initializes a new instance of the StringAnsiView class.

    Declaration
    public constexpr StringAnsiView(const StringAnsiView& str)
    Parameters
    StringAnsiView str

    The reference to the static string.

    Returns
    constexpr

    Substring(int32 startIndex)

    Retrieves substring created from characters starting from startIndex to the String end.

    Declaration
    public StringAnsi Substring(int32 startIndex) const
    Parameters
    int32 startIndex

    The index of the first character to subtract.

    Returns
    StringAnsi

    The substring created from String data.

    Substring(int32 startIndex, int32 count)

    Retrieves substring created from characters starting from start index.

    Declaration
    public StringAnsi Substring(int32 startIndex, int32 count) const
    Parameters
    int32 startIndex

    The index of the first character to subtract.

    int32 count

    The amount of characters to retrieve.

    Returns
    StringAnsi

    The substring created from String data.

    ToString()

    Declaration
    public String ToString() const
    Returns
    String

    ToStringAnsi()

    Declaration
    public StringAnsi ToStringAnsi() const
    Returns
    StringAnsi

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