OINO TS
    Preparing search index...

    Class OINOFormatter

    Class for formatting strings and values.

    Index

    Constructors

    Properties

    _params: any[][]
    _types: string[]
    OINO_FORMATTER_REGEXP: RegExp = ...

    Methods

    • Applies all formatters in order to given value.

      Parameters

      • value: string

        string value to be formatted

      Returns string

      formatted string value

    • Constructor for OINOFormatter as parser of http parameter.

      Parameters

      • formatters: string | string[]

        string or array of strings of serialized representation of formatters with following functions

        • trim()
        • trimLeft()
        • trimRight()
        • toUpper()
        • toLower()
        • cropLeft(charsToCrop)
        • cropRight(charsToCrop)
        • cropToDelimiter(delimiter,offsetChars)
        • cropFromDelimiter(delimiter,offsetChars)
        • substring(start,end)
        • replace(search,replace)

      Returns OINOFormatter