Tim
a568e4dac6
Changes entityToUtf8 implementation from htmlparser and add two procs ( #7288 )
...
`entityToUtf8` now supports every entity name and decimal and hexadecimal values from https://dev.w3.org/html5/html-author/charref .
As it finally turned out, the `case` implementation generates even a smaller binary size compared to a `[(name, val)]` implementation.
Additionally the procs `entityToRune` and `runeToEntity` are now available. The last one only generates numeric html entities, so it doesn't need a lookup table.
2018-03-04 21:18:03 +01:00
twetzel59
9079517d71
Resolves #5588 : adds openFileStream proc that throws on failure ( #7282 )
2018-03-04 17:30:28 +01:00
Dominik Picheta
fa07bb1356
Improves documentation for strformat module.
...
* Adds description of the difference between ``fmt`` and ``&``.
* Moves runnable examples to bottom of file.
* Separates examples at the top of module better.
2018-03-01 19:07:58 +00:00
Andreas Rumpf
a6c7972086
make travis green again
2018-03-01 16:23:25 +01:00
Araq
ce1047f2ae
added -d:nimNoArrayToString define to allow easier porting to 0.18
2018-03-01 09:42:25 +01:00
Andreas Rumpf
51935c47b0
deprecate parseopt2 stdlib module
2018-02-28 23:00:52 +01:00
Dominik Picheta
99ae9269f0
Merge pull request #7251 from zevv/issue-6270-sleepAsync-timer-resolution
...
Allow float argument to sleepAsync() to allow sub-millisecond resolution
2018-02-28 20:02:17 +00:00
Vindaar
a897371797
move readPasswordFromStdin from rdstdin to terminal ( #7266 )
2018-02-27 17:49:35 +01:00
Araq
7740b12f21
revert commit 6cf8a72d498f5cb8a532c2ff3259bc7aecf474ef; Windows fixes getch bug
2018-02-27 17:47:19 +01:00
Andreas Rumpf
f9b742c72a
make osproc.execProcesses more robust
2018-02-25 16:02:52 +01:00
Dominik Picheta
1975998c56
Detect openssl related to outdated openssl and help user solve issue.
2018-02-25 13:34:32 +00:00
Misha Kotwica
ba6e11fc88
Parsecsv mutability ( #7253 )
...
* parsecsv: immutable vars into lets
improving readability
* parsecsv.rowEntry: add mutable access
2018-02-24 14:55:38 +01:00
Ico Doornekamp
d6229f20ff
Allow float argument to sleepAsync() to allow sub-millisecond resolution
2018-02-23 19:16:11 +01:00
Dominik Picheta
fb3e460f6d
Improve SSL error message in httpclient.
2018-02-22 10:49:27 +00:00
antizealot1337
6f0bb6e1f5
Fix style string formatting for cursorBackward and cursorForward ( #7243 )
2018-02-22 10:01:26 +01:00
konqoro
b0637bc373
Fix toCountTable and newCountTable
2018-02-21 13:22:41 +02:00
Dominik Picheta
ceebfb3e89
Remove repetitive index checks in b30b920751.
2018-02-19 20:00:14 +00:00
data-man
b30b920751
Fix date parsing for a bad inputs
2018-02-19 16:57:17 +03:00
Dominik Picheta
864467ade3
Merges #7226 manually.
2018-02-19 12:14:45 +00:00
Dominik Picheta
c74a65662a
Revert "Fixes #4265."
...
This reverts commit fe6fddb9d8 .
2018-02-17 22:24:43 +00:00
Dominik Picheta
fe6fddb9d8
Fixes #4265 .
2018-02-17 22:15:28 +00:00
Dominik Picheta
63bc046ddf
Fixes #7227 .
2018-02-17 19:36:06 +00:00
Dominik Picheta
411b9aeac7
Merge pull request #7228 from endragor/fix-asyncfile-open
...
Fix AsyncFile open flags. Fixes #5531
2018-02-17 12:08:09 +00:00
Ruslan Mustakov
319e88585a
Fix AsyncFile open flags. Fixes #5531
2018-02-17 17:40:35 +07:00
Andreas Rumpf
89782460a3
fixes #7215
2018-02-14 10:09:35 +01:00
Dominik Picheta
1a2351f95f
Fixes #4995 . ( #7157 )
2018-02-13 11:08:37 +01:00
Imran Hendley
df4f707743
add more functionality from sets to intsets ( #7185 )
...
* add more functionality from sets to intsets
* remove -+-
* < and == performance
* don't hardcode s.a.len
* remove shortcuts from < and ==
2018-02-12 21:20:17 +01:00
Dominik Picheta
23d272f652
Merge pull request #7205 from GULPF/json-to-fix
...
Fix `json.to` for types with generic parameters
2018-02-12 09:22:35 +00:00
Oscar Nihlgård
8247323860
Fix json.to for types with generic parameters
2018-02-11 23:15:04 +01:00
Oscar Nihlgård
7847cd8759
Add parseHtml overload for string ( #7198 )
2018-02-10 22:47:20 +01:00
Andreas Rumpf
70e8640244
move new sha1 module into the new 'std' namespace
2018-02-06 17:40:31 +01:00
Andreas Rumpf
4f9ae61695
fixes #6939
2018-02-02 17:35:04 +01:00
Andreas Rumpf
274fafb2df
fixes #6961
2018-02-02 17:35:04 +01:00
Dominik Picheta
fcd4cd82c3
Merge pull request #6796 from nim-lang/async-improvements
...
Async improvements
2018-01-28 19:11:17 +00:00
Dominik Picheta
86fb8bf723
Revert 3db460f504 as requested by @Araq.
2018-01-28 17:13:08 +00:00
Dominik Picheta
6c035379fe
Merge pull request #6597 from pgkos/uri-allow-no-authority
...
Allow parsing URIs without authority
2018-01-28 17:00:33 +00:00
Dominik Picheta
1a565d7b20
Merge pull request #6517 from FedericoCeratto/hexstr
...
Add string-to-hex and back conversions
2018-01-26 15:32:28 +00:00
Yuriy Glukhov
ecbbefcc83
Fallback to doNothing if /proc/loadavg cant be opened ( #7123 )
2018-01-22 13:52:22 +01:00
Andreas Rumpf
fea66497b4
terminal.nim: code cleanup
2018-01-18 19:34:46 +01:00
Dmitry Atamanov
7ce38122e8
Support truecolor for the terminal stdlib module ( #6936 )
2018-01-18 18:48:59 +01:00
Yuriy Glukhov
1b3f640188
Fixed crash in rand ( #7103 )
2018-01-18 18:47:58 +01:00
Dominik Picheta
ef19634065
Workaround 'defer' issue in httpclient.downloadFile. Refs #3877 . ( #7101 )
2018-01-18 14:08:35 +01:00
Andreas Rumpf
090d22c715
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-01-18 11:40:30 +01:00
Andreas Rumpf
ffd8e922a1
stats.nim: add a '$' operator for RunningStat
2018-01-18 10:45:46 +01:00
Dominik Picheta
47d05b3f2e
Merge branch 'devel' into async-improvements
2018-01-17 16:28:00 +00:00
Dominik Picheta
b754bfabb6
Merge pull request #7023 from yglukhov/unify-async
...
Unify async macro and futures for js and native targets
2018-01-17 15:06:32 +00:00
Dominik Picheta
136f1a208a
Merge pull request #7066 from nim-lang/net-fixes
...
Assert on closed sockets
2018-01-16 22:05:49 +00:00
Dominik Picheta
1661062ebf
Raise assertion error when attempting to use closed socket.
2018-01-15 17:48:32 +00:00
Araq
9a60eae631
fixes #7078
2018-01-14 23:49:53 +01:00
lcrees
1e55d92009
Add default argument to 'tables.getOrDefault'
2018-01-13 16:06:08 -07:00