summary refs log tree commit diff stats
path: root/lib/core
Commit message (Expand)AuthorAgeFilesLines
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-161-1/+1
* basename supports pragmaexpr (#13045)b3liever2020-01-071-2/+4
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-174-518/+0
* ARC related bugfixes and refactorings (#12781)Andreas Rumpf2019-12-051-87/+0
* ARC: ported the GC tests over to --gc:arcAraq2019-11-261-0/+12
* more arc improvements (#12690)Andreas Rumpf2019-11-201-2/+5
* gc:arc: support GC_ref/unref for ref TAraq2019-11-131-2/+13
* fixes #12644Andreas Rumpf2019-11-121-7/+10
* .cursor implementation (#12637)Andreas Rumpf2019-11-122-3/+3
* backtick and export marker handling in `eqIdent` (#12574)Arne Döring2019-11-071-6/+12
* newruntime: only check for dangling refs when 'owned ref T' support is enabledAndreas Rumpf2019-11-031-7/+8
* [backport] Add docs to better distinguish among getProjectPath, getCurrentDir...Kaushal Modi2019-10-311-3/+23
* --gc:destructors now means Nim uses pure refcounting (#12557)Andreas Rumpf2019-10-301-4/+18
* Fix newLit for objects having string fields (#12542) [backport]zah2019-10-281-5/+5
* Prefer relative links for Nim documentationJjp1372019-10-221-2/+2
* fixes #12330 (#12331)Timothee Cour2019-10-021-1/+2
* Macro docs additions (#12270)Jasper Jenkins2019-10-011-123/+140
* macros.newLit now works for ref object types (#12307)zah2019-09-301-0/+6
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
* Locks modules should give a compile error when threads are not enabled. (#12231)Ray Imber2019-09-262-0/+8
* last stdlib cleanupsAraq2019-09-212-0/+13
* lib\pure\htmlgen.nimAraq2019-09-212-116/+0
* add nodeId proc to macros (#11456)Arne Döring2019-09-181-0/+6
* fixes a weird quote do regressionAndreas Rumpf2019-09-161-1/+1
* Allow ProcTy in addPragma and friends (#12158)Yuriy Glukhov2019-09-101-6/+12
* gc:destructors progressAraq2019-09-011-49/+0
* fixes #11833 (#12018)Andreas Rumpf2019-08-241-1/+1
* new gensym handling (#11985)Andreas Rumpf2019-08-231-2/+2
* Implement isExported for symbols in macros (#11963)nc-x2019-08-181-0/+3
* refs #11956 (#11957)Timothee Cour2019-08-161-1/+1
* fixes #11844 (#11935)Andreas Rumpf2019-08-131-4/+4
* fixes #11891Andreas Rumpf2019-08-101-0/+10
* fixes #11844Araq2019-08-041-1/+1
* Fix the range of destroyed elements when shrinking a seq (#11785)Jörg Wollenschläger2019-07-191-1/+1
* Fix compilation warning in macros.nimKaushal Modi2019-07-161-1/+1
* made --newruntime ready for multi-threadingAraq2019-07-121-5/+21
* styleCheck: make the compiler and large parts of the stdlib compatible with -...Araq2019-07-103-19/+19
* fixes #11530Andreas Rumpf2019-07-081-1/+6
* [HCR] Added warning for using performCodeReload() in main module (#11667)awr12019-07-071-1/+4
* [other] added system.dispose for owned refsAndreas Rumpf2019-06-201-0/+3
* [bugfix] owned closures (#11544)Andreas Rumpf2019-06-201-0/+7
* change newLit on Seq (#11542)Arne Döring2019-06-191-7/+7
* [refactoring] error instead of quit for basename (#11491)Jasper Jenkins2019-06-131-2/+4
* intVal works now on enum field symbols (#11403)Arne Döring2019-06-051-0/+2
* remove stdlib case transitions (#11401)Jasper Jenkins2019-06-051-1/+1
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-29/+26
* fix doccomment of macros.get{Size,Align,Offset} [ci skip] (#11346)Arne Döring2019-05-281-7/+12
* Allow void macro result (#11286)Arne Döring2019-05-211-1/+1
* fixes macros.quote documentation; doubling of the escape operator never worked!Araq2019-05-051-3/+1
* add progmas to params of macros.newProc (#11025)Lolo Iccl2019-04-271-3/+7
w"> # both cursors at the end: if j >= bLen: return 0 # not yet at the end of 'b': return -1 elif j >= bLen: return 1 inc i inc j template cmpIgnoreCaseImpl*[T: string | cstring](a, b: T, firstCharCaseSensitive: static bool = false) = let aLen = a.len let bLen = b.len var i = 0 when firstCharCaseSensitive: firstCharCaseSensitiveImpl(a, b, aLen, bLen) inc i var m = min(aLen, bLen) while i < m: result = ord(toLowerAscii(a[i])) - ord(toLowerAscii(b[i])) if result != 0: return inc i result = aLen - bLen template startsWithImpl*[T: string | cstring](s, prefix: T) = let prefixLen = prefix.len let sLen = s.len var i = 0 while true: if i >= prefixLen: return true if i >= sLen or s[i] != prefix[i]: return false inc(i) template endsWithImpl*[T: string | cstring](s, suffix: T) = let suffixLen = suffix.len let sLen = s.len var i = 0 var j = sLen - suffixLen while i+j >= 0 and i+j < sLen: if s[i+j] != suffix[i]: return false inc(i) if i >= suffixLen: return true ='#n882'>882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021