FreeRealmsLocaleTools FreeRealmsLocaleTools
FreeRealmsLocaleTools FreeRealmsLocaleTools
DocFX + Singulink = ♥

Search Results for

    Class LocaleFile

    Provides static methods for reading and writing Free Realms locale files.

    Inheritance
    object
    LocaleFile
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FreeRealmsLocaleTools.LocaleParser
    Assembly: FreeRealmsLocaleTools.dll
    Syntax
    public static class LocaleFile

    Methods

    Name Description
    AddEntries(string, string, IEnumerable<string>)

    Adds the specified collection of strings as locale entries to the given .dat file and .dir file.

    ReadEntries(string)

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

    ReadEntries(string, IEnumerable<LocaleEntryLocation>)

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

    ReadEntries(string, string, ParseOptions)

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

    ReadEntryLocations(string)

    Reads the location of each locale entry from the specified .dir file, and returns them in an array.

    ReadMetadata(string)

    Reads the metadata lines from the specified .dir file.

    ReadPreamble(FileStream)

    Reads the preamble bytes at the beginning of the specified stream.

    ReadPreamble(string)

    Reads the preamble bytes at the beginning of the specified locale .dat file.

    RemoveEntries(string, string, Func<LocaleEntry, bool>)

    Removes all locale entries that match the specified predicate from the given .dat file and .dir file.

    UpdateEntries(string, string, Func<LocaleEntry, bool>, Func<LocaleEntry, string>)

    Replaces the text of all locale entries matching the predicate with the specified selector text from the given .dat file and .dir file.