Commit Graph

102 Commits

Author SHA1 Message Date
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
Araq
84534ce4b8 Merge branch 'master' of github.com:Araq/Nimrod 2013-07-20 20:18:21 +02:00
Araq
bfbdb1f028 refactorings for the eval engine; bugfix: clean templates as accessors 2013-07-19 22:22:20 +02:00
Grzegorz Adam Hankiewicz
65b899030d Extends align proc with default padding parameter. 2013-07-05 21:37:30 +02:00
Grzegorz Adam Hankiewicz
0b5ca95222 Adds note about grouping to split iterators. 2013-05-11 00:04:08 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Grzegorz Adam Hankiewicz
9c0798d638 Adds left alignment example to strutils. 2013-03-12 00:21:42 +01:00
Araq
5d119f61d1 preparations for a generational GC 2013-02-16 22:53:35 +01:00
Dominik Picheta
c4743805d9 Added strutils.unescape and fixed issue with strutils.escape. 2013-01-25 21:43:54 +00:00
Grzegorz Adam Hankiewicz
3ff2f7fbbc Adds to split() a code example using a set of separators. 2012-12-11 22:30:29 +01:00
Dominik Picheta
6c6dfff4e9 Added strutils.rfind. 2012-08-19 13:00:28 +01:00
Araq
d37fe6e0a5 stdlib uses more of varargs 2012-08-16 16:30:13 +02:00
Araq
0171566c98 openarray/varargs split; breaks bootstrapping 2012-08-16 08:34:33 +02:00
Araq
15dd3a2251 fixes #109 2012-05-20 10:56:17 +02:00
Araq
8624ec09a9 bugfix: strutils.formatFloat 2012-05-09 02:14:48 +02:00
Araq
e95f155af3 small bugfixes; documentation generator supports smilies for the forum 2012-05-01 11:14:29 +02:00
Araq
3ef9f54cc1 added strutils.parseEnum; fixes #95 2012-04-01 00:31:22 +02:00
Araq
f0172b0a5f exported strutils.abbrev 2012-02-24 19:19:13 +01:00
Araq
4cfc0462a4 bugfixes: tests are green again 2012-01-13 23:28:08 +01:00
Araq
8ed3e295a3 niminst: diverse improvements; fixes #80 2012-01-13 21:15:00 +01:00