FreeRealmsLocaleTools FreeRealmsLocaleTools
FreeRealmsLocaleTools FreeRealmsLocaleTools
DocFX + Singulink = ♥

Search Results for

    Method UpdateEntries

    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.

    Declaration
    public static LocaleFileInfo UpdateEntries(string localeDatPath, string localeDirPath, Func<LocaleEntry, bool> predicate, Func<LocaleEntry, string> selector)
    Parameters
    Type Name Description
    string localeDatPath

    The path to the locale .dat file.

    string localeDirPath

    The path to the locale .dir file.

    Func<LocaleEntry, bool> predicate

    A function to test each locale entry for a condition.

    Func<LocaleEntry, string> selector

    A transform function to apply to matching entries' text.

    Returns
    Type Description
    LocaleFileInfo

    A LocaleFileInfo instance that wraps the locale files.

    Exceptions
    Type Condition
    ArgumentNullException