various function updates
parent
8c54fb636d
commit
62592007fd
|
|
@ -74,6 +74,6 @@ import "sql"
|
|||
sql.from(
|
||||
driverName: "postgres",
|
||||
dataSourceName: "postgresql://user:password@localhost",
|
||||
query:"SELECT * FROM TestTable"
|
||||
query:"SELECT * FROM ExampleTable"
|
||||
)
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: strings.containsStr() function
|
||||
description: The strings.containsStr() function reports whether a string is contained in another string.
|
||||
description: The strings.containsStr() function reports whether a string contains a specified substring.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.containsStr
|
||||
|
|
@ -10,7 +10,7 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/containsany
|
||||
---
|
||||
|
||||
The `strings.containsStr()` function reports whether a string is contained in another string.
|
||||
The `strings.containsStr()` function reports whether a string contains a specified substring.
|
||||
|
||||
_**Output data type:** Boolean_
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
title: strings.countStr() function
|
||||
description: >
|
||||
The strings.countStr() function counts the number of non-overlapping instances
|
||||
one string appears in another string.
|
||||
of a substring appears in a string.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.countStr
|
||||
|
|
@ -11,7 +11,7 @@ weight: 301
|
|||
---
|
||||
|
||||
The `strings.countStr()` function counts the number of non-overlapping instances
|
||||
one string appears in another string.
|
||||
of a substring appears in a string.
|
||||
|
||||
_**Output data type:** Integer_
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ The string value to search.
|
|||
_**Data type:** String_
|
||||
|
||||
### substr
|
||||
The substring value to count.
|
||||
The substring to count.
|
||||
|
||||
_**Data type:** String_
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ related:
|
|||
---
|
||||
|
||||
The `strings.index()` function returns the index of the first instance of a substring
|
||||
in another string. If the substring is not present, it returns `-1`.
|
||||
in a string. If the substring is not present, it returns `-1`.
|
||||
|
||||
_**Output data type:** Integer_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: strings.isDigit() function
|
||||
description: The strings.isDigit() function indicates if a single character string is a digit (0-9).
|
||||
description: The strings.isDigit() function tests if a single character string is a digit (0-9).
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.isDigit
|
||||
|
|
@ -10,7 +10,7 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/isletter/
|
||||
---
|
||||
|
||||
The `strings.isDigit()` function indicates if a single-character string is a digit (0-9).
|
||||
The `strings.isDigit()` function tests if a single-character string is a digit (0-9).
|
||||
|
||||
_**Output data type:** Boolean_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: strings.isLetter() function
|
||||
description: The strings.isLetter() function indicates if a single character string is a letter (a-z, A-Z).
|
||||
description: The strings.isLetter() function tests if a single character string is a letter (a-z, A-Z).
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.isLetter
|
||||
|
|
@ -10,7 +10,7 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/isdigit/
|
||||
---
|
||||
|
||||
The `strings.isLetter()` function indicates if a single character string is a letter (a-z, A-Z).
|
||||
The `strings.isLetter()` function tests if a single character string is a letter (a-z, A-Z).
|
||||
|
||||
_**Output data type:** Boolean_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: strings.isLower() function
|
||||
description: The strings.isLower() function indicates if a single-character string is lowercase.
|
||||
description: The strings.isLower() function tests if a single-character string is lowercase.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.isLower
|
||||
|
|
@ -10,7 +10,7 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/isupper
|
||||
---
|
||||
|
||||
The `strings.isLower()` function indicates if a single-character string is lowercase.
|
||||
The `strings.isLower()` function tests if a single-character string is lowercase.
|
||||
|
||||
_**Output data type:** Boolean_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: strings.isUpper() function
|
||||
description: The strings.isUpper() function indicates if a single character string is uppercase.
|
||||
description: The strings.isUpper() function tests if a single character string is uppercase.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.isUpper
|
||||
|
|
@ -10,14 +10,14 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/islower
|
||||
---
|
||||
|
||||
The `strings.isUpper()` function indicates if a single character string is uppercase.
|
||||
The `strings.isUpper()` function tests if a single character string is uppercase.
|
||||
|
||||
_**Output data type:** Boolean_
|
||||
|
||||
```js
|
||||
import "strings"
|
||||
|
||||
strings.isUpper(v: "A FLUX OF FOXES")
|
||||
strings.isUpper(v: "A")
|
||||
|
||||
// returns true
|
||||
```
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ menu:
|
|||
weight: 301
|
||||
---
|
||||
|
||||
The `strings.joinStr()` function concatenates the elements of a string array into
|
||||
The `strings.joinStr()` function concatenates elements of a string array into
|
||||
a single string using a specified separator.
|
||||
|
||||
_**Output data type:** String_
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
title: strings.lastIndex() function
|
||||
description: >
|
||||
The strings.lastIndex() function returns the index of the last instance of a substring
|
||||
in another string or `-1` if substring is not present.
|
||||
in a string or `-1` if substring is not present.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.lastIndex
|
||||
|
|
@ -15,7 +15,7 @@ related:
|
|||
---
|
||||
|
||||
The `strings.lastIndex()` function returns the index of the last instance of a substring
|
||||
in another string. If the substring is not present, the function returns `-1`.
|
||||
in a string. If the substring is not present, the function returns `-1`.
|
||||
|
||||
_**Output data type:** Integer_
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ The string value to search.
|
|||
_**Data type:** String_
|
||||
|
||||
### chars
|
||||
The string value that contains characters to search for.
|
||||
Characters to search for.
|
||||
|
||||
_**Data type:** String_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: strings.repeat() function
|
||||
description: The strings.repeat() function returns a string consisting of i copies of a specified string.
|
||||
description: The strings.repeat() function returns a string consisting of `i` copies of a specified string.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.repeat
|
||||
|
|
@ -8,7 +8,7 @@ menu:
|
|||
weight: 301
|
||||
---
|
||||
|
||||
The `strings.repeat()` function returns a string consisting of i copies of a specified string.
|
||||
The `strings.repeat()` function returns a string consisting of `i` copies of a specified string.
|
||||
|
||||
_**Output data type:** String_
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/replaceall
|
||||
---
|
||||
|
||||
The `strings.replace()` function replaces the first `i` non-overlapping instances of a substring with a specified replacement.
|
||||
The `strings.replace()` function replaces the first `i` non-overlapping instances
|
||||
of a substring with a specified replacement.
|
||||
|
||||
_**Output data type:** String_
|
||||
|
||||
|
|
@ -32,12 +33,12 @@ The string value to search.
|
|||
_**Data type:** String_
|
||||
|
||||
### t
|
||||
The string value to replace.
|
||||
The substring value to replace.
|
||||
|
||||
_**Data type:** String_
|
||||
|
||||
### u
|
||||
The string value to replace `i` instances of `t`.
|
||||
The replacement for `i` instances of `t`.
|
||||
|
||||
_**Data type:** String_
|
||||
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@ The string value to search.
|
|||
_**Data type:** String_
|
||||
|
||||
### t
|
||||
The string value to replace.
|
||||
The substring to replace.
|
||||
|
||||
_**Data type:** String_
|
||||
|
||||
### u
|
||||
The string value to replace all instances of `t`.
|
||||
The replacement for all instances of `t`.
|
||||
|
||||
_**Data type:** String_
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ _**Output data type:** Array of strings_
|
|||
```js
|
||||
import "strings"
|
||||
|
||||
strings.splitN(v: "a flux of foxes", t: " ")
|
||||
strings.splitN(v: "a flux of foxes", t: " ", i: 2)
|
||||
|
||||
// returns ["a", "flux", "of foxes"]
|
||||
```
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import "strings"
|
|||
|
||||
strings.toTitle(v: "a flux of foxes")
|
||||
|
||||
// returns "A Flux Of Foxes"
|
||||
// returns "A FLUX OF FOXES"
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: strings.trimLeft() function
|
||||
description: >
|
||||
The strings.trimLeft() function removes leading characters specified in the cutset from a string.
|
||||
The strings.trimLeft() function removes specified leading characters from a string.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: strings.trimLeft
|
||||
|
|
@ -15,8 +15,7 @@ related:
|
|||
- /v2.0/reference/flux/functions/strings/trimspace
|
||||
---
|
||||
|
||||
The `strings.trimLeft()` function removes leading characters specified in the
|
||||
[`cutset`](#cutset) from a string.
|
||||
The `strings.trimLeft()` function removes specified leading characters from a string.
|
||||
|
||||
_**Output data type:** String_
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue