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 TsvParser

    Inheritance
    object
    BaseParser
    BaseTableParser
    TsvParser
    Inherited Members
    BaseTableParser.DescriptionColumnCaption
    BaseTableParser.LocaleSeparatorChar
    BaseTableParser.TreatEmptyValuesAsAbsent
    BaseTableParser.UseDefaultFileForTranslations
    BaseTableParser.OnCultureNameMatchCheck
    BaseTableParser.GetLocaleSeparatorChar()
    BaseTableParser.LoadTranslation(string, CultureInfo)
    BaseTableParser.ParseConfiguration(string, Assembly)
    BaseTableParser.InternalLoadTranslationStructure(string)
    BaseTableParser.ReadDelimitedLine(string, int, int, List<string>, out int, char, bool)
    BaseParser.RecognizeFileRefs
    BaseParser.StringHasParameters(string, TextFormat)
    BaseParser.GetTextProcessingMode()
    BaseParser.LoadTranslationStructure(string, string, out TranslationConfiguration)
    BaseParser.ParseConfigurationFile(string)
    BaseParser.ParseConfigurationFile(Assembly, string)
    BaseParser.ValidateConfiguration(TranslationConfiguration)
    BaseParser.GetAbsolutePosition(string, int, int)
    BaseParser.DecodeTextProcessingMode(string)
    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 class TsvParser : BaseTableParser

    Properties

    ExpectQuotes

    Gets or sets the flag that tells the parser whether the TSV file uses quotes to wrap the text with unsafe characters (new-line characters and tabs that are a part of values).

    Declaration
    public static bool ExpectQuotes { get; set; }
    Property Value
    Type Description
    bool

    TextProcessingMode

    Gets or sets the text processing mode to use when decoding potentially escaped strings and when recognizing template strings in translation entries.

    Declaration
    public static TextFormat TextProcessingMode { get; set; }
    Property Value
    Type Description
    TextFormat

    Methods

    CanHandleExtension(string)

    Checks whether this parser can handle a translation file with the given extension.

    This method is not used for configuration files.

    Declaration
    public override bool CanHandleExtension(string fileExtension)
    Parameters
    Type Name Description
    string fileExtension

    The extension to check.

    Returns
    Type Description
    bool

    true if the extension is supported and false otherwise.

    Overrides
    BaseTableParser.CanHandleExtension(string)

    ReadCells(string, int, int, List<string>, out int)

    Reads cells from the provided text starting at position offset.

    This is an abstract function overridden by specific parsers which implement the logic or call the ReadCells(string, int, int, List<string>, out int) method with the required parameters for the default implementation.

    Declaration
    protected override void ReadCells(string content, int offset, int lineNumber, List<string> buffer, out int posAfterEnd)
    Parameters
    Type Name Description
    string content

    The text, from which the cells are read.

    int offset

    The starting position of the text to read from.

    int lineNumber

    The current line being processed. Used for error reporting.

    List<string> buffer

    The container for read cells.

    int posAfterEnd

    Upon return, is set to the position of the first character beyond the read one. EOL characters are skipped, so the value must reference the start of the next line.

    Overrides
    BaseTableParser.ReadCells(string, int, int, List<string>, out int)

    Use()

    Initializes the parser class, making it available for use.

    Declaration
    public static void Use()
    In this article
    Back to top Generated by DocFX