udpated strlen and substring functions to address PR feedback

pull/301/head
Scott Anderson 2019-07-01 15:41:09 -06:00
parent d2fba66818
commit fe7cd3a786
2 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ menu:
weight: 301 weight: 301
--- ---
The `strings.strlen()` function returns the length of the a string. The `strings.strlen()` function returns the length of a string.
String length is determined by the number of UTF code points a string contains. String length is determined by the number of UTF code points a string contains.
_**Output data type:** Integer_ _**Output data type:** Integer_
@ -32,7 +32,7 @@ _**Data type:** String_
## Examples ## Examples
###### Filter based on column value length ###### Filter based on string value length
```js ```js
import "strings" import "strings"

View File

@ -1,7 +1,7 @@
--- ---
title: strings.substring() function title: strings.substring() function
description: > description: >
The strings.substring() function returns a substring based on given start and end indices. The strings.substring() function returns a substring based on `start` and `end` parameters.
Indices are based on UTF code points. Indices are based on UTF code points.
menu: menu:
v2_0_ref: v2_0_ref:
@ -10,8 +10,8 @@ menu:
weight: 301 weight: 301
--- ---
The `strings.substring()` function returns a substring based on given start and end indices. The `strings.substring()` function returns a substring based on `start` and `end` parameters.
Indices are based on UTF code points. These parameters are represent indices of UTF code points in the string.
_**Output data type:** String_ _**Output data type:** String_
@ -42,7 +42,7 @@ _**Data type:** Integer_
## Examples ## Examples
###### Store the first four characters of column values ###### Store the first four characters of a string
```js ```js
import "strings" import "strings"