Commit Graph

121 Commits

Author SHA1 Message Date
JamesP
36cf87e6a9 add {.pop.} for {.push debugger:off.} to balance push/pop 2015-10-14 09:11:19 +10:00
Joey Payne
2d256a4489 Made strutils string test procs less redundant. 2015-10-10 09:13:00 -06:00
Joey Payne
ea9a1e26be Added tests for string test procs. 2015-10-10 08:55:19 -06:00
Joey Payne
e3bc27ac15 Changed alphanumeric check to "or" instead of "and". 2015-10-10 08:40:52 -06:00
Joey Payne
bb570de994 Added useful procs to strutils for string testing.
Added procs:

    isAlpha
    isAlphaNumeric
    isDigit
    isSpace
    isUpper
    isLower
2015-10-09 22:09:21 -06:00
Araq
8e9c0db66d strutils: wrap too long lines 2015-10-06 15:50:58 +02:00
Dominik Picheta
808253370b Implement strutils.indent 2015-09-11 14:35:25 +01:00
Araq
1e597c6332 formatFloat takes an optional decimalSep parameter 2015-09-01 23:41:03 +02:00
Zach Aysan
d886c44931 Add extern pragma 2015-07-21 15:51:47 -04:00
Zach Aysan
d2c992c03d Add docs 2015-07-21 15:49:05 -04:00
Zach Aysan
99b29b3e97 Switch to removeSuffix name and modify the string in place 2015-07-21 15:10:03 -04:00
Zach Aysan
a291f2c271 Create Ruby-like chomp proc to allow for easy string ending removal 2015-07-17 16:25:58 -04:00
patrick dw
15e7fe787a renamed writeln to writeLine in lib 2015-06-19 01:02:22 -05:00
pdw
d18e18060e lib/pure/p-t - Dropped 'T' from types 2015-06-04 13:18:36 +02:00
msmith491
50f54bf60b Add arbitrary char support to the strutils proc. Issue #2626 2015-04-30 21:40:26 -07:00
Araq
6725aa3634 fixes #2517 2015-04-25 23:16:59 +02:00
Oleh Prypin
22db40e5e4 Turn some test outputs into actual tests 2015-04-21 15:59:32 +03:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
def
22b4e4c2f2 Use more Natural and Positive numbers in proc parameters
- Didn't go through all modules, only the main ones I thought of
- Building the compiler and tests still work
2015-04-06 02:24:17 +02:00
Hans Raaf
3546ff8819 Replaced repeatStr() and repeatChar() with more natural versions. 2015-03-03 16:37:54 +01:00
Hans Raaf
88f3b1d99f Fixing toHex() to not wrap for long lens.
If you specify a len like 32 toHex() will repeat the given value in the
output. Besides that I believe my implementation is easier and seems not
to change how negative numbers are handled. I also handle the case of
wrapping negative number beyond BiggestInt to "do it right".
2015-02-18 18:58:20 +01:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Araq
8f587e2eab fixes #2041 2015-01-31 11:49:19 +01:00
dyu
12f97a7151 strutils.rfind via char 2014-12-19 20:08:42 +08:00
Araq
9d9c3fe121 merged things from devel 2014-09-12 01:37:48 +02:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Araq
00f50f2797 more modules updated 2014-08-28 02:12:49 +02:00
Araq
df172806ea big rename 2014-08-28 00:24:52 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Araq
2f43fdb837 renamefest 2014-08-23 01:43:49 +02:00
def
c78b1070a8 overlapping as a parameter for count instead 2014-07-28 16:48:21 +02:00
def
72dbd12ca4 Add count procedures to strutils 2014-07-23 16:33:40 +02:00
Grzegorz Adam Hankiewicz
7f276fa9e0 Homogenizes docstrings for strutils module.
This mostly involves separating the short description string from the
full description block, capitalizing it, and adding any worthwhile
hyperlinks to other symbols.
2014-07-18 13:18:45 +02:00
Grzegorz Adam Hankiewicz
5a3c88d3ad Mentions countLines() may return unexpected values. 2014-07-18 12:57:50 +02:00
def
66fad12391 Change wordwrap to remove separators at newlines 2014-07-09 20:40:01 +02:00
Grzegorz Adam Hankiewicz
2353b5633e Hyperlinks back JavaScript target. 2014-06-21 23:48:41 +02:00
Dominik Picheta
7cddb39969 Adds split proc for strings with a string separator. 2014-04-11 21:42:44 +01:00
Grzegorz Adam Hankiewicz
d63eca96e5 Adds AllChars constant to strutils. 2014-01-22 23:01:50 +01:00
Araq
73c6efdf66 'nil' as a statement is deprecated, use an empty 'discard' instead 2014-01-19 16:54:59 +01:00
Araq
438703f59e case consistency: next steps 2013-12-29 01:13:51 +01:00
Araq
1101a40f91 improvements for 'pretty' 2013-12-28 23:30:53 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00
Araq
b76729df1c Merge branch 'master' of https://github.com/Araq/Nimrod into vm2
Conflicts:
	web/news.txt
2013-12-23 01:23:16 +01:00
Michał Zieliński
c363197275 Deprecate quoteIfContainsWhite in favor of osproc.quoteShell. 2013-12-10 23:00:01 +01:00
Grzegorz Adam Hankiewicz
da05cf51de Reverts "Make quoteIfContainsWhite quote…". Refs #702.
This reverts commit e7e8c77062 to avoid
tool breakage. A different approach is being worked on #730.
2013-12-10 17:50:47 +01:00
Michał Zieliński
e7e8c77062 Make quoteIfContainsWhite quote argument, so it can be safely passed to shell.
On Windows put it in double quotes and escape double quotes using backslash.
On Posix put it in single quotes and escape single quotes using '"'"'.

This commit changes what quoteIfContainsWhite does, but before that change it
was used incorrectly all over standard library, which caused security issues.
2013-12-07 22:56:02 +01:00
Araq
9035d15ed2 next steps for FFI support 2013-11-25 13:04:11 +01:00
Araq
b4e25a6372 new VM is getting stable 2013-10-29 01:07:59 +01:00
Araq
023bd63d39 fixes #398 2013-08-31 20:45:34 +02:00