PINE LIBRARY

StrTrimPadCase

OVERVIEW

Contains various functions for manipulation with strings:

- padright() / padleft() - Pad a string to the right or left with a given char.

- trim2() - Trims not only spaces but also line breaks.

- nz(string) - like nz(), replaces na with a supplied string

FUNCTIONS

nz(s, replacement)
  Similar to nz() but for strings. However, since `string(na)` is the same as `""`
there is no such thing as `na` for strings. So, the function just replaces `""` with `replacement`.
  Parameters:
    s (string)
    replacement (string): (string) (Optional) A string returned when `s` is `""` / `na`. Default: `""`

method toUppercase(s)
  Converts a string to uppercase
  Namespace types: series string, simple string, input string, const string
  Parameters:
    s (string)

method toLowercase(s)
  Converts a string to uppercase
  Namespace types: series string, simple string, input string, const string
  Parameters:
    s (string)

method padright(this, length, char)
  pads a string up to `length` by adding `char`'s (spaces by default) to the end. (the first char of `char`
string is used). Respects max string length of 4096.
  Namespace types: series string, simple string, input string, const string
  Parameters:
    this (string)
    length (int)
    char (simple string): (string) A char to pad with. (if string longer than one char is supplied uses the first char)

method padleft(this, length, char)
  pads a string up to `length` by adding `char`'s (spaces by default) to the beginning(the first char of
`char` string is used). Respects max string length of 4096.
  Namespace types: series string, simple string, input string, const string
  Parameters:
    this (string)
    length (int)
    char (simple string): (string) A char to pad with. (if string longer than one char is supplied uses the first char)
stringstrings

ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם קוד Pine זה כספריית קוד פתוח כדי שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית.

כתב ויתור