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
---
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.
_**Output data type:** Integer_
@ -32,7 +32,7 @@ _**Data type:** String_
## Examples
###### Filter based on column value length
###### Filter based on string value length
```js
import "strings"

View File

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