Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

add simpler api for applying text replacements #43

Closed
alex3683 opened this issue Jul 22, 2014 · 1 comment
Closed

add simpler api for applying text replacements #43

alex3683 opened this issue Jul 22, 2014 · 1 comment

Comments

@alex3683
Copy link
Member

The bloated text library should be deprecated in favor of a simpler api for applying replacements within a string.

@alex3683
Copy link
Member Author

Implemented on master, targeted version v0.12.0.

Upgrade Information

A new method string.format() for substitution and formatting of placeholder values was introduced. The api doc can be found here: https://github.com/LaxarJS/laxar/blob/master/docs/api/lib/utilities/string.md#format
Additionally the method string.createFormatter() for custom formatting purposes was introduced. The api doc can be found in the same document linked to above.

Deprecation notice

Everything under lib/text is now deprecated. Instead the new string.format() and string.createFormatter() in lib/utilities should be used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant