Repository navigation
New text functions #518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+996
−63
Merged
New text functions #518
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
26244af
Function EXACT
voodoo11 b626636
Function LOWER
voodoo11 b944562
Function UPPER
voodoo11 d1d2fab
Function MID
voodoo11 66bf5d6
Function T
voodoo11 f0f6253
Add specs for range argument
voodoo11 c16fdac
Function SUBSTITUTE
voodoo11 0940ba8
Function REPLACE
voodoo11 891ffd6
Typo
voodoo11 bcd022c
Function UNICODE
voodoo11 9d36bef
Function UNICHAR
voodoo11 2418d0f
CHANGELOG
voodoo11 8bbfb0e
Update docs
voodoo11 5c43a6d
Merge branch 'develop' into jk/text-functions
voodoo11 6611b3c
Use substring where it's feasible
voodoo11 46ae093
Update test/interpreter/function-lower.spec.ts
voodoo11 c108752
Update test/interpreter/function-exact.spec.ts
voodoo11 2f28b95
Use negative length error message
voodoo11 fca3f82
Test for SUBSTITUE with overlapping pattern
voodoo11 8b70536
Missing newlines
voodoo11 87a7876
Apply suggestions from code review
voodoo11 893622c
Merge branch 'develop' into jk/text-functions
voodoo11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -226,16 +226,26 @@ lets you design your own [custom functions](custom-functions). | |||||
| | MIN | Statistical | Returns the minimum value in a list of arguments. | MIN(Number1; Number2; ...Number30) | | ||||||
| | MINA | Statistical | Returns the minimum value in a list of arguments. | MINA(Value1; Value2; ... Value30) | | ||||||
| | CHAR | Text | Converts a number into a character according to the current code table. | CHAR(Number) | | ||||||
| | CLEAN <br><Badge text="v0.2.0"/>| Text | Returns text that has been "cleaned" of line breaks and other non-printable characters. | CLEAN("Text") | | ||||||
| | CLEAN | Text | Returns text that has been "cleaned" of line breaks and other non-printable characters. | CLEAN("Text") | | ||||||
| | CODE | Text | Returns a numeric code for the first character in a text string. | CODE("Text") | | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| | CONCATENATE | Text | Combines several text strings into one string. | CONCATENATE("Text1"; ...; "Text30") | | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| | SPLIT | Text | Divides text around a specified character or string, and puts each fragment into a separate cell in the row. | SPLIT(Text, Delimiter, [Split_by_each], [Remove_empty_text]) | | ||||||
| | TEXT | Text | Converts a number into text according to a given format. | TEXT(Number; Format) | | ||||||
| | EXACT | Text | Returns TRUE if both text strings are exactly the same. | EXACT(Text; Text) | | ||||||
| | FIND <br><Badge text="v0.2.0"/>| Text | Returns the location of one text string inside another. | FIND( "Text1"; "Text2"[; Number]) | | ||||||
| | LEFT <br><Badge text="v0.2.0"/>| Text | Extracts a given number of characters from the left side of a text string. | LEFT("Text"; Number) | | ||||||
| | LEN <br><Badge text="v0.2.0"/>| Text | Returns length of a given text. | LEN("Text") | | ||||||
| | TRIM <br><Badge text="v0.2.0"/>| Text | Strips extra spaces from text. | TRIM("Text") | | ||||||
| | LOWER | Text | Returns text converted to lowercase. | LOWER(Text) | | ||||||
| | MID | Text | Returns substring of a given length starting from Start_position. | MID(Text, Start_position, Length) | | ||||||
| | PROPER <br><Badge text="v0.2.0"/>| Text | Capitalizes words given text string. | PROPER("Text") | | ||||||
| | CLEAN <br><Badge text="v0.2.0"/>| Text | Returns text that has been "cleaned" of line breaks and other non-printable characters. | CLEAN("Text") | | ||||||
| | REPLACE | Text | Replaces substring of a text of a given length that starts at given position. | REPLACE(Text; Start_position; Length; New_text) | | ||||||
| | REPT <br><Badge text="v0.2.0"/>| Text | Repeats text a given number of times. | REPT("Text"; Number) | | ||||||
| | RIGHT <br><Badge text="v0.2.0"/>| Text | Extracts a given number of characters from the right side of a text string. | RIGHT("Text"; Number) | | ||||||
| | LEFT <br><Badge text="v0.2.0"/>| Text | Extracts a given number of characters from the left side of a text string. | LEFT("Text"; Number) | | ||||||
| | SEARCH <br><Badge text="v0.2.0"/>| Text | Returns the location of one text string inside another. (Allows the use of wildcards.) | SEARCH( "Text1"; "Text2"[; Number]) | | ||||||
| | FIND <br><Badge text="v0.2.0"/>| Text | Returns the location of one text string inside another. | FIND( "Text1"; "Text2"[; Number]) | | ||||||
| | SPLIT | Text | Divides text around a specified character or string, and puts each fragment into a separate cell in the row. | SPLIT(Text, Delimiter, [Split_by_each], [Remove_empty_text]) | | ||||||
| | SUBSTITUTE | Text | Returns string where occurrences of Old_text are replaced by New_text. Replaces only specific occurrence if last parameter is provided. | SUBSTITUTE(Text; Old_text; New_text; [Occurrence]) | | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| | T | Text | Returns text if given value is text, empty string otherwise. | T(Value) | | ||||||
| | TEXT | Text | Converts a number into text according to a given format. | TEXT(Number; Format) | | ||||||
| | TRIM <br><Badge text="v0.2.0"/>| Text | Strips extra spaces from text. | TRIM("Text") | | ||||||
| | UNICHAR | Text | Returns the character created by using provided code point. | UNICHAR(Number) | | ||||||
| | UNICODE | Text | Returns the Unicode code point of a first character of a text. | UNICODE(Text) | | ||||||
| | UPPER | Text | Returns text converted to uppercase. | UPPER(Text) | | ||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.