Skip to content

Commit

Permalink
Update lpad and rpad functions description
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Jan 18, 2018
1 parent 6c39212 commit dd03981
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/function_help/json/lpad
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "lpad",
"type": "function",
"description": "Returns a string padded to supplied width using a fill character.",
"description": "Returns a string padded on the left to the specified width, using a fill character. If the target width is smaller than the string's length, the string is truncated.",
"arguments": [ {"arg":"string","description":"string to pad"},
{"arg":"width","description":"length of new string"},
{"arg":"fill","description":"character to pad the remaining space with"}
],
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"}
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"},
{ "expression":"lpad('Hello', 3, 'x')", "returns":"'Hel'"}
]
}
5 changes: 3 additions & 2 deletions resources/function_help/json/rpad
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "rpad",
"type": "function",
"description": "Returns a string padded to supplied width using a fill character.",
"description": "Returns a string padded on the right to the specified width, using a fill character. If the target width is smaller than the string's length, the string is truncated.",
"arguments": [
{"arg":"string","description":"string to pad"},
{"arg":"width","description":"length of new string"},
{"arg":"fill","description":"character to pad the remaining space with"}
],
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"}
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"},
{ "expression":"rpad('Hello', 3, 'x')", "returns":"'Hel'"}
]
}

0 comments on commit dd03981

Please sign in to comment.