-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Text.substring to allow for an easy short hand of Text.take (star…
…t.up_to end) (#7913) * Add Text.substring function and get_position helper function For #7876 adds a Text.substring function which supports negative indexes and returns a part of a string from 0-based index 'start' and continuing for 'length' * added substring and simplified get function For #7876 adds a Text.substring function which supports negative indexes and returns a part of a string from 0-based index 'start' and continuing for 'length'. Also simplified get function as it looped unnecessarily. * Update distribution/lib/Standard/Base/0.0.0-dev/src/Data/Text/Extensions.enso punctuation corrections Co-authored-by: GregoryTravis <greg.m.travis@gmail.com> * Update Text_Spec.enso Added test for start index larger than string * Update distribution/lib/Standard/Base/0.0.0-dev/src/Data/Text/Extensions.enso updated Arguments: section to use consistent style Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org> * Update distribution/lib/Standard/Base/0.0.0-dev/src/Data/Text/Extensions.enso updated Index_Out_Of_Bounds error to reference cached length Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org> * Removed Slice label and added changelog entry * Re-added slice tag to substring Per conversation with James, added slice back to substring * Update CHANGELOG.md add link --------- Co-authored-by: GregoryTravis <greg.m.travis@gmail.com> Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
- Loading branch information
1 parent
9f15b90
commit d7258ab
Showing
4 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 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 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 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