FreeRealmsLocaleTools FreeRealmsLocaleTools
FreeRealmsLocaleTools FreeRealmsLocaleTools
DocFX + Singulink = ♥

Search Results for

    Method ReadEntries

    ReadEntries(string)

    Opens the locale file, reads all locale entries from the file, and then closes the file.

    Declaration
    public static LocaleEntry[] ReadEntries(string localeDatPath)
    Parameters
    Type Name Description
    string localeDatPath

    The path to the locale .dat file.

    Returns
    Type Description
    LocaleEntry[]

    An array containing all locale entries from the specified file.

    Exceptions
    Type Condition
    ArgumentNullException

    ReadEntries(string, string, ParseOptions)

    Opens the locale files, reads all locale entries from the files, and then closes the files.

    Declaration
    public static LocaleEntry[] ReadEntries(string localeDatPath, string localeDirPath, ParseOptions options = ParseOptions.Normal)
    Parameters
    Type Name Description
    string localeDatPath

    The path to the locale .dat file.

    string localeDirPath

    The path to the locale .dir file.

    ParseOptions options

    Specifies how to parse locale entries from the .dat/.dir file.

    Returns
    Type Description
    LocaleEntry[]

    An array containing all locale entries from the specified files.

    Exceptions
    Type Condition
    ArgumentNullException
    InvalidDataException

    ReadEntries(string, IEnumerable<LocaleEntryLocation>)

    Opens the locale file, reads all locale entries specified in locations, and then closes the file.

    Declaration
    public static LocaleEntry[] ReadEntries(string localeDatPath, IEnumerable<LocaleEntryLocation> locations)
    Parameters
    Type Name Description
    string localeDatPath

    The path to the locale .dat file.

    IEnumerable<LocaleEntryLocation> locations

    The collection of locale entry locations to read from localeDatPath.

    Returns
    Type Description
    LocaleEntry[]

    An array containing all locale entries specified in locations.

    Exceptions
    Type Condition
    ArgumentNullException
    InvalidDataException