diff --git a/content/v2.0/reference/flux/functions/sql/from.md b/content/v2.0/reference/flux/functions/sql/from.md index 1af4c3063..e55e074d0 100644 --- a/content/v2.0/reference/flux/functions/sql/from.md +++ b/content/v2.0/reference/flux/functions/sql/from.md @@ -74,6 +74,6 @@ import "sql" sql.from( driverName: "postgres", dataSourceName: "postgresql://user:password@localhost", - query:"SELECT * FROM TestTable" + query:"SELECT * FROM ExampleTable" ) ``` diff --git a/content/v2.0/reference/flux/functions/strings/containsstr.md b/content/v2.0/reference/flux/functions/strings/containsstr.md index 5942a946d..fcb1edd75 100644 --- a/content/v2.0/reference/flux/functions/strings/containsstr.md +++ b/content/v2.0/reference/flux/functions/strings/containsstr.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/countstr.md b/content/v2.0/reference/flux/functions/strings/countstr.md index 8187bc221..2639a9285 100644 --- a/content/v2.0/reference/flux/functions/strings/countstr.md +++ b/content/v2.0/reference/flux/functions/strings/countstr.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/index-func.md b/content/v2.0/reference/flux/functions/strings/index-func.md index cdf3009c8..c0d290cc3 100644 --- a/content/v2.0/reference/flux/functions/strings/index-func.md +++ b/content/v2.0/reference/flux/functions/strings/index-func.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/isdigit.md b/content/v2.0/reference/flux/functions/strings/isdigit.md index 886d54fd7..5cd7530bd 100644 --- a/content/v2.0/reference/flux/functions/strings/isdigit.md +++ b/content/v2.0/reference/flux/functions/strings/isdigit.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/isletter.md b/content/v2.0/reference/flux/functions/strings/isletter.md index c4e219ac8..3772a2ff6 100644 --- a/content/v2.0/reference/flux/functions/strings/isletter.md +++ b/content/v2.0/reference/flux/functions/strings/isletter.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/islower.md b/content/v2.0/reference/flux/functions/strings/islower.md index 120c48993..db87b0587 100644 --- a/content/v2.0/reference/flux/functions/strings/islower.md +++ b/content/v2.0/reference/flux/functions/strings/islower.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/isupper.md b/content/v2.0/reference/flux/functions/strings/isupper.md index 2949132df..c2dfcc30a 100644 --- a/content/v2.0/reference/flux/functions/strings/isupper.md +++ b/content/v2.0/reference/flux/functions/strings/isupper.md @@ -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 ``` diff --git a/content/v2.0/reference/flux/functions/strings/joinstr.md b/content/v2.0/reference/flux/functions/strings/joinstr.md index 137b0af41..7aa2c7bdb 100644 --- a/content/v2.0/reference/flux/functions/strings/joinstr.md +++ b/content/v2.0/reference/flux/functions/strings/joinstr.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/lastindex.md b/content/v2.0/reference/flux/functions/strings/lastindex.md index e47966544..afe38b790 100644 --- a/content/v2.0/reference/flux/functions/strings/lastindex.md +++ b/content/v2.0/reference/flux/functions/strings/lastindex.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/lastindexany.md b/content/v2.0/reference/flux/functions/strings/lastindexany.md index da9b64e7f..8fa0cdf75 100644 --- a/content/v2.0/reference/flux/functions/strings/lastindexany.md +++ b/content/v2.0/reference/flux/functions/strings/lastindexany.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/repeat.md b/content/v2.0/reference/flux/functions/strings/repeat.md index ceaed2d1a..a369afcec 100644 --- a/content/v2.0/reference/flux/functions/strings/repeat.md +++ b/content/v2.0/reference/flux/functions/strings/repeat.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/replace.md b/content/v2.0/reference/flux/functions/strings/replace.md index d3ef8f7ac..60aab2a20 100644 --- a/content/v2.0/reference/flux/functions/strings/replace.md +++ b/content/v2.0/reference/flux/functions/strings/replace.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/replaceall.md b/content/v2.0/reference/flux/functions/strings/replaceall.md index b39408f4e..0209850db 100644 --- a/content/v2.0/reference/flux/functions/strings/replaceall.md +++ b/content/v2.0/reference/flux/functions/strings/replaceall.md @@ -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_ diff --git a/content/v2.0/reference/flux/functions/strings/splitn.md b/content/v2.0/reference/flux/functions/strings/splitn.md index d3a4d92f6..5575bb742 100644 --- a/content/v2.0/reference/flux/functions/strings/splitn.md +++ b/content/v2.0/reference/flux/functions/strings/splitn.md @@ -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"] ``` diff --git a/content/v2.0/reference/flux/functions/strings/totitle.md b/content/v2.0/reference/flux/functions/strings/totitle.md index 2c61d4ee7..197aa72ba 100644 --- a/content/v2.0/reference/flux/functions/strings/totitle.md +++ b/content/v2.0/reference/flux/functions/strings/totitle.md @@ -21,7 +21,7 @@ import "strings" strings.toTitle(v: "a flux of foxes") -// returns "A Flux Of Foxes" +// returns "A FLUX OF FOXES" ``` ## Parameters diff --git a/content/v2.0/reference/flux/functions/strings/trimleft.md b/content/v2.0/reference/flux/functions/strings/trimleft.md index e5a32ba0b..5cae24ad7 100644 --- a/content/v2.0/reference/flux/functions/strings/trimleft.md +++ b/content/v2.0/reference/flux/functions/strings/trimleft.md @@ -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_