Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [backport] improve unicode docs, fixes #2353 (#10174) | Miran | 2019-01-04 | 1 | -85/+122 |
| | | | | | | | | * as instructed in #2353, provides a short description why there are no specialized procs for seq[Rune] * adds several examples to better explain what some functions do * small fixes (double backticks, add missing dots, etc.) * use `rune` instead of "unicode characer" | ||||
* | fixes #9800 (#9804) [backport] | pgkos | 2018-11-26 | 1 | -2/+5 |
| | | | | | * fixes #9800 * add tests for #9800 | ||||
* | Fixed wording (#9761) | Yuriy Glukhov | 2018-11-20 | 1 | -4/+4 |
| | |||||
* | removes deprecated T/P types | Araq | 2018-11-16 | 1 | -2/+0 |
| | |||||
* | WIP | Arne Döring | 2018-11-08 | 1 | -1/+6 |
| | |||||
* | unicode.nim: minor alignment change | Araq | 2018-11-02 | 1 | -6/+6 |
| | |||||
* | unicode: added strip, align, alignLeft, repeat procs; refs #6301 | Andreas Rumpf | 2018-10-14 | 1 | -0/+149 |
| | |||||
* | unicode: add split procs; refs #6301 | Andreas Rumpf | 2018-10-14 | 1 | -0/+176 |
| | |||||
* | strutils/unicode: deprecate isLower and friends operating on complete ↵ | Andreas Rumpf | 2018-10-14 | 1 | -40/+7 |
| | | | | strings; fixes #7963 properly | ||||
* | Make isUpper (and variants) work for strings with non-alpha chars | Kaushal Modi | 2018-06-08 | 1 | -30/+84 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The other variants are isLower, isUpperAscii and isLowerAscii Fixes https://github.com/nim-lang/Nim/issues/7963. This commit changes the behavior and signatures of: - isUpper, isLower in the unicode module - isUpperAscii, isLowerAscii in the strutils module A second mandatory parameter skipNonAlpha is added to these 4 procs. (This change affects only for the case where the input is a *string*.) --- With skipNonAlpha set to true, the behavior mimics the Python isupper and islower behavior i.e. non-alphabetic chars/runes are ignored when checking if the string is upper-case or lower-case. Before this commit: doAssert(not isUpper("A B")) After this commit: doAssert(not isUpper("A B", false)) <-- old behavior doAssert isUpper("A B", true) Below two are equivalent: isUpper("A B", true) isAlpha("A B") and isUpper("A B", false) .. and the similar for other 3 procs. | ||||
* | keep unicode.nim warning free | Araq | 2018-05-18 | 1 | -4/+4 |
| | |||||
* | remove dead code elimination option (#7669) | Jacek Sieka | 2018-04-23 | 1 | -1/+1 |
| | |||||
* | Fixes #6223. | Dominik Picheta | 2017-11-28 | 1 | -6/+6 |
| | |||||
* | Little spelling fix in unicode module | Dominik Picheta | 2017-10-15 | 1 | -1/+1 |
| | |||||
* | system/unicode: check for buffer overflows; refs #5284 | Araq | 2017-02-08 | 1 | -25/+47 |
| | |||||
* | update stdlib to not use deprecated symbols | Andreas Rumpf | 2016-08-25 | 1 | -3/+3 |
| | |||||
* | Added iterator for utf8 strings | Hans Raaf | 2016-07-13 | 1 | -1/+15 |
| | |||||
* | Add useful unicode procs for string manipulation | Joey Payne | 2016-07-01 | 1 | -0/+134 |
| | | | | | | | Added: isUpper, isLower, isAlpha, isWhiteSpace, toUpper, toLower, and capitalize Renamed strutils procs that are similar to avoid conflicts | ||||
* | Add new procs for string manipulation | Joey Payne | 2016-06-13 | 1 | -29/+209 |
| | | | | | Add center, isTitle, title, partition, rpartition, rsplit, swapCase, translate, and expandTabs | ||||
* | Optimized end offsets and added tests. | Hans Raaf | 2016-06-02 | 1 | -12/+93 |
| | | | | | | I hope this also shows that there are use cases. I still think the user should get warned about performance issues with those procs, which I added to the doc comments. | ||||
* | More work in optimizing, names and added substr(). | Hans Raaf | 2016-06-02 | 1 | -6/+40 |
| | | | | | This is work in progress. I added an unicode substring. Tried to handle edgecases more consistent too. | ||||
* | Some procs to deal with Rune position base indexing. | Hans Raaf | 2016-06-02 | 1 | -0/+19 |
| | | | | | It can't be perfect but at least one can index on rune position efficiently. | ||||
* | change 'Rune' type in unicode module to 'int32' | Parashurama | 2016-06-02 | 1 | -2/+2 |
| | |||||
* | validateUtf8: catch overlong ascii | theduke | 2015-11-26 | 1 | -0/+1 |
| | | | Make unicode.validateUtf8() check for overlong ascii representations, which are 2 bytes long and start with c0 or c1. | ||||
* | fixesunicode.lastRune | Araq | 2015-09-29 | 1 | -2/+1 |
| | |||||
* | added unicode.lastRun, unicode.graphemeLen | Araq | 2015-09-21 | 1 | -6/+35 |
| | |||||
* | lib: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 1 | -1/+1 |
| | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | Corrected proc name in assertion | apense | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | Corrected documentation | apense | 2015-07-09 | 1 | -27/+28 |
| | |||||
* | Renamed to toRunes | apense | 2015-07-04 | 1 | -1/+1 |
| | |||||
* | Added new proc | apense | 2015-07-03 | 1 | -10/+18 |
| | | | In reference to #2353 | ||||
* | Updated whitespace ranges | apense | 2015-06-08 | 1 | -2/+8 |
| | | | Ranges sourced from <http://www.unicode.org/Public/7.0.0/ucd/PropList.txt>_. Wikipedia also uses these ranges on its information page <http://en.wikipedia.org/wiki/Whitespace_character#Unicode>_. 0xfeff isn't included in the list, but it is a no-break space, so I guess it makes sense. 0x200b is actually a format character, but it is a zero-width space. To fit Unicode, both 0x200b and 0xfeff would be removed. | ||||
* | marshalling can be done at compile-time | Araq | 2015-04-25 | 1 | -0/+25 |
| | |||||
* | Use more Natural and Positive numbers in proc parameters | def | 2015-04-06 | 1 | -965/+965 |
| | | | | | - Didn't go through all modules, only the main ones I thought of - Building the compiler and tests still work | ||||
* | make toUTF8 support up to 6 bytes | def | 2015-03-03 | 1 | -4/+18 |
| | |||||
* | Fix documentation a bit in unicode | def | 2015-02-14 | 1 | -2/+3 |
| | |||||
* | Optimize unicode.reversed | def | 2015-01-15 | 1 | -19/+31 |
| | | | | | | | Runs about 18 times faster: - combining characters with boolean logic instead of binary search - No more temporary sequence - Optimize for ASCII characters | ||||
* | Add reversed proc to unicode module | def | 2015-01-02 | 1 | -0/+38 |
| | |||||
* | big rename | Araq | 2014-08-27 | 1 | -48/+50 |
| | |||||
* | resolved conflicts with master | Araq | 2014-01-18 | 1 | -0/+4 |
|\ | |||||
| * | Define $ operator for TRune | Satish BD | 2013-12-26 | 1 | -1/+3 |
| | | |||||
| * | Define $ operator for TRune | Satish BD | 2013-12-26 | 1 | -0/+2 |
| | | |||||
* | | case consistency: next steps | Araq | 2013-12-29 | 1 | -8/+8 |
| | | |||||
* | | case consistency part 4 | Araq | 2013-12-27 | 1 | -20/+20 |
| | | |||||
* | | case consistency part 1 | Araq | 2013-12-27 | 1 | -2/+2 |
|/ | |||||
* | garbage-in-garbage-out principle for unicode errors; fixes #674 | Araq | 2013-11-19 | 1 | -15/+15 |
| | |||||
* | Implements `$` proc for a sequence of TRunes. | Grzegorz Adam Hankiewicz | 2013-03-11 | 1 | -0/+12 |
| | |||||
* | more uint related fixes | Zahary Karadjov | 2012-06-14 | 1 | -3/+3 |
| | |||||
* | unicode: invalid utf-8 bytes are preserved | Araq | 2012-04-13 | 1 | -4/+6 |
| | |||||
* | year 2012 for most copyright headers | Araq | 2012-01-02 | 1 | -1/+1 |
| |