summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2908 from apense/patch-7Andreas Rumpf2015-06-151-16/+40
|\ | | | | Updated random functions. Fixes #2907
| * Updated RNG for Visual Capense2015-06-141-14/+27
| | | | | | Can't test it, but it should work just fine. Can be extended to MinGW w/ GCC and other compilers sometime in the future
| * Discarded randomize for windowsapense2015-06-111-6/+9
| | | | | | It actually doesn't use it because `rand_s` doesn't.
| * Updated random functionsapense2015-06-111-4/+12
| | | | | | For Windows, `rand_s` has been available since Windows XP (see https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx). It gives a better quality random number in a larger range (the max is actually `0xffffffff`).
* | colors: Introduce resetStyle enum & use templatesAdam Strzelecki2015-06-151-7/+28
| | | | | | | | | | | | | | | | | | 1. Introduce TerminalCmd enum and resetStyle that can be issued to issue resetAttributes within styledEcho arguments. 2. Use templates to resolve styledEcho arguments for performance reasons. 3. Try to avoid calling trailing write "\n" and reset attributes where possible.
* | fixes #2909Araq2015-06-153-28/+59
| |
* | fixed #1985Vlad2015-06-141-1/+3
| |
* | Fix logger formattingSergey Avseyev2015-06-131-11/+20
|/ | | | | | | | | | | | | | | | | | | Motivation ---------- Current implementation does not allow to specify any formatting. It even cannot output log level, because `writeln()` accepts `varags[string]` and silently ignores everything before last argument. Modification ------------ Perform formatting in the single place during substitution. Make log level optional as all other substitution variables. Also make verbose logging more informative and parseable. Result ------ Correct handling formatting and substitutions. Machine-friendly default output of verbose logger.
* Merge pull request #2902 from yglukhov/js-copying-fixAndreas Rumpf2015-06-121-22/+30
|\ | | | | Fixed copying of aggregates in JS.
| * Fixed copying of aggregates in JS.yglukhov2015-06-111-22/+30
| |
* | Merge pull request #2818 from flaviut/add-nreAndreas Rumpf2015-06-124-7/+758
|\ \ | | | | | | Add nre to stdlib
| * | Revert "Base re off of nre"Flaviu Tamas2015-06-101-142/+235
| | | | | | | | | | | | This reverts commit dc60a51e1545d8c73bc9415d1045864b72cfda0b.
| * | Fix ambiguous character literalFlaviu Tamas2015-06-071-1/+1
| | |
| * | Fix potential code bloatFlaviu Tamas2015-06-071-4/+5
| | |
| * | Rename RegexException according to NEP1Flaviu Tamas2015-06-071-5/+5
| | |
| * | Edit re and nre doc commentsFlaviu Tamas2015-06-072-20/+1
| | |
| * | Clean up nre importsFlaviu Tamas2015-06-071-2/+1
| | |
| * | Use stdlib's PCRE in nreFlaviu Tamas2015-06-072-443/+1
| | |
| * | Deprecate reFlaviu Tamas2015-06-071-2/+2
| | |
| * | Adjust re for nre's inclusive boundsFlaviu Tamas2015-06-071-1/+1
| | |
| * | Base re off of nreOleh Prypin2015-06-071-238/+142
| | |
| * | Ensure no one uses internal moduleFlaviu Tamas2015-06-071-0/+1
| | |
| * | Merge branch 'devel' of https://github.com/Araq/Nim into add-nreFlaviu Tamas2015-06-07123-6383/+5854
| |\ \ | | | | | | | | | | | | | | | | | | | | * 'devel' of https://github.com/Araq/Nim: Fix #964, fix #1384 Don't inspect typedescs
| * | | Disable static building of PCREFlaviu Tamas2015-05-2628-44889/+10
| | | |
| * | | Clarify nre licencingFlaviu Tamas2015-05-261-0/+53
| | | |
| * | | Rearrange nre filesFlaviu Tamas2015-05-2646-579/+3
| | | |
| * | | Merge remote 'nre' into add-nreFlaviu Tamas2015-05-2647-0/+46616
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nre-proj/master: (132 commits) Change to options module Reweave readme Better handle errors Update documentation Change flags to inline Improve performance Add tests for empty or non-empty match Fix skipping an empty match at the end Add longer flags Fix getinfo overflows Use docweave Convert readme to RST Fix result shadowing warning Throw an exception when replacing with a nil value Fix potential buffer overflow Fix zero-length matches for multibyte characters Make splitting an empty string give 1 empty result Change endpos to inclusive Change endpos default from -1 to int.high Change capture upper bounds to inclusive ...
* | | | Merge pull request #2896 from r-ku/I64-magics-goneAndreas Rumpf2015-06-121-15/+15
|\ \ \ \ | | | | | | | | | | I64 magics gone
| * | | | Removed magics: mAbsI64rku2015-06-101-1/+1
| | | | |
| * | | | Removed magics: mBitnotI64rku2015-06-101-1/+1
| | | | |
| * | | | Removed magics: mEqI64 mLtI64 mLeI64rku2015-06-101-3/+3
| | | | |
| * | | | Removed magics: mShrI64, mShlI64, mBitandI64, mBitorI64, mBitxorI64rku2015-06-101-5/+5
| | | | | | | | | | | | | | | | | | | | Author: rku <rokups@zoho.com>
| * | | | Removed magics: mAddI64, mSubI64, mMulI64, mDivI64, mModI64rku2015-06-101-5/+5
| | | | | | | | | | | | | | | | | | | | Author: rku <rokups@zoho.com>
* | | | | Fixed unittest output.yglukhov2015-06-111-1/+0
| |_|_|/ |/| | |
* | | | Merge pull request #2891 from sstirlin/develAndreas Rumpf2015-06-102-3/+4
|\ \ \ \ | | | | | | | | | | fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
| * | | | disabled threadpool assertion only for vccSpencer Stirling2015-06-101-1/+2
| | | | |
| * | | | fixed threadpool and atomics to work with Visual Studio 32 and 64 bitSpencer Stirling2015-06-092-3/+3
| |/ / /
* | | | Fix doc typos in basic2d and basic3dmsiglreith2015-06-102-2/+2
| | | |
* | | | terminal doesn't use enormous windows module anymoreAraq2015-06-101-22/+81
| | | |
* | | | no private deprecated symbolsAraq2015-06-101-1/+0
| | | |
* | | | Merge pull request #2866 from nanoant/patch/db-deffered-rowsAndreas Rumpf2015-06-103-1/+71
|\ \ \ \ | | | | | | | | | | db: InstantRow and instantRows
| * | | | db: InstantRow and instantRowsAdam Strzelecki2015-06-093-1/+71
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is drop-in replacement for Row and fastRows, however instantRows returns a handle, not seq[string], so no Nim string is created until [] operator is called on the given handle. Also there is a len() proc returning number of columns in the handle. In some situations, when we iterate through many rows, but later we just read few columns this solution will be quicker than converting all column to Nim seq[string] on each iteration.
* | | | Merge pull request #2892 from apense/patch-6Andreas Rumpf2015-06-101-3/+0
|\ \ \ \ | | | | | | | | | | Fixes #2886 (moves compiler function into the compiler)
| * | | | Removed unnecessary templateapense2015-06-091-3/+0
| |/ / / | | | | | | | | `-|` only used in the compiler for negative indexing
* / / / Allow to set position at end of streamFederico Omoto2015-06-091-1/+1
|/ / /
* | | Updated whitespace rangesapense2015-06-081-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.
* | | Fixes #2884Dominik Picheta2015-06-081-2/+4
| |/ |/| | | | | Haven't tested this patch but should work.
* | Merge pull request #2643 from grncdr/TAny-and-inheritanceAndreas Rumpf2015-06-071-0/+2
|\ \ | | | | | | Resolve base type fields in `[](TAny, string)`
| * | Resolve base type fields in `[](TAny, string)`Stephen Sugden2015-05-031-0/+2
| | |
* | | Merge pull request #2645 from def-/builtin_overflowAndreas Rumpf2015-06-071-54/+122
|\ \ \ | | | | | | | | Use builtin overflow functions of Clang and GCC (WIP, RFC)