Tlumach
  • Articles
  • API Reference
Search Results for

    Show / Hide Table of Contents
    • Tlumach
      • Base
        • ArbParser
        • ArbPlaceholder
        • BaseGenerator
        • BaseJsonParser
        • BaseKeyValueParser
        • BaseParser
        • BaseTableParser
        • BaseXMLParser
        • CsvParser
        • CultureNameMatchEventArgs
        • FileFormats
        • GenericParserException
        • IniParser
        • JsonParser
        • ParserConfigException
        • ParserFileException
        • ParserLoadException
        • Placeholder
        • ResxParser
        • TemplateParserException
        • TemplateProcessingException
        • TextFileParseException
        • TextFormat
        • TextParseException
        • TlumachException
        • TomlParser
        • Translation
        • TranslationConfiguration
        • TranslationEntry
        • TranslationTree
        • TranslationTreeLeaf
        • TranslationTreeNode
        • TsvParser
        • Utils
      • BaseTranslationUnit
      • CultureChangedEventArgs
      • FileContentNeededEventArgs
      • TemplatedTranslationUnit
      • TranslationManager
      • TranslationUnit
      • TranslationValueEventArgs

    Class FileFormats

    Inheritance
    object
    FileFormats
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tlumach.Base
    Assembly: Tlumach.Base.dll
    Syntax
    public static class FileFormats

    Methods

    GetConfigParser(string)

    Returns a registered parser of configuration files with the given extension.

    Declaration
    public static BaseParser? GetConfigParser(string extension)
    Parameters
    Type Name Description
    string extension

    The extension for which the parser is needed.

    Returns
    Type Description
    BaseParser

    An instance of the found parser or null otherwise.

    GetParser(string, bool)

    Returns a registered parser of translation files with the given extension.

    Declaration
    public static BaseParser? GetParser(string extension, bool getStaticInstance = false)
    Parameters
    Type Name Description
    string extension

    The extension for which the parser is needed.

    bool getStaticInstance

    When set to true, uses a cached singleton (or creates one if it does not yet exist).

    This parameter is used by the helper functions.

    Returns
    Type Description
    BaseParser

    An instance of the found parser or null otherwise.

    GetSupportedExtensions()

    Returns the list of extensions registered as recognized for translation files.

    Declaration
    public static IList<string> GetSupportedExtensions()
    Returns
    Type Description
    IList<string>

    A list of registered extensions, in lowercase.

    In this article
    Back to top Generated by DocFX