Veit Heller
39e8fc6d24
fix: escape quotes in String.prn ( #1287 )
2021-07-29 08:30:42 +02:00
guberathome
6cd2a96486
clean up IO library ( #1232 )
2021-06-08 21:05:51 +02:00
Erik Svedäng
40d55562df
fix: Pointer str & prn ( #1060 )
...
* fix: Make `str` work for (Pointer a) types
* test: Make sure that the Pointer.str compiles
* fix: Remove test case, keep function around to make sure it compiles
2020-12-09 06:19:07 +01:00
Jorge Acereda
2d91f49600
Fix crash reported in #923 .
2020-11-16 23:46:16 +01:00
Tim Dévé
4971be73f4
Moves scripts in scripts folder
2020-11-09 10:51:11 +00:00
hellerve
acce3a471c
register-type: fix for void
2020-11-05 16:49:32 +01:00
hellerve
ef355b91d8
core: use static array for args
2020-08-24 11:20:52 +02:00
hellerve
3b8b668bdf
core: fix syntax error
2020-07-08 22:00:43 +02:00
hellerve
57a5226a62
core: make sure string is null-terminated in String.from-bytes
2020-07-08 21:56:15 +02:00
hellerve
91b220c051
core: add String.from-bytes
2020-07-08 21:56:14 +02:00
Erik Svedäng
14a0d7e722
Merge pull request #799 from hellerve/veit/string-to-bytes
...
Add String.to-bytes
2020-05-13 20:59:37 +02:00
hellerve
468c232741
core: add String.to-bytes
2020-05-13 17:15:26 +02:00
hellerve
c569666a0a
core: make from-string better
2020-05-12 22:33:40 +02:00
Jorge Acereda
2186b34e94
Roll our own UTF-8 support.
2020-05-12 01:14:02 +02:00
Jorge Acereda
a95fe95ab1
Fix warning on Windows.
2020-05-11 16:10:41 +02:00
Jorge Acereda
9b08b6df3c
Merge
2020-05-11 16:10:35 +02:00
Jorge Acereda
83e8c1a874
Fix Char_str().
2020-05-11 16:08:40 +02:00
Jorge Acereda
a6055eec5f
Long type to ensure longs are actually 64 bits.
2020-04-22 10:40:06 +02:00
hellerve
ee812b37e6
core: make subarry/substring slice
2020-02-11 09:09:30 +01:00
hellerve
c0c31b6ad1
core: add Float.from-string and Double.from-string
2020-01-29 11:41:06 +01:00
hellerve
9a431b1f54
core: use memcpy in String_append
2020-01-27 23:11:45 +01:00
hellerve
657f6c9d3a
all: use snprintf only when checking length
2020-01-27 22:43:11 +01:00
Erik Svedäng
ea045be426
Merge branch 'byte-type' of https://github.com/hellerve/Carp into hellerve-byte-type
2020-01-27 10:10:58 +01:00
hellerve
cc6774ef8c
core: make String.from-cstr copy
2020-01-14 10:08:29 +01:00
hellerve
cd0c09da3f
core: add String.from-cstr
2020-01-13 22:49:23 +01:00
hellerve
f1f252639f
core: add a byte type
2019-11-01 10:52:34 +01:00
hellerve
1829df07a5
core: do not have short functions on single lines
2019-10-30 11:07:32 +01:00
hellerve
65946224f0
core: add .clang-format (references #499 )
2019-10-30 08:47:36 +01:00
Jorge Acereda
4a4107fffd
Preserve includes order in generated output.
2019-10-03 00:23:27 +02:00
Erik Svedäng
ec9fc0f493
Merge pull request #550 from jacereda/typos
...
Fix some typos.
2019-09-11 11:11:39 +02:00
Jorge Acereda
8162deb1bb
Fix gcc9 warning.
2019-09-11 08:33:38 +02:00
Jorge Acereda
cb9ff267b6
Fix some typos.
2019-09-11 08:21:42 +02:00
Jorge Acereda
e10f4228c0
CHK_INDEX macro
2019-06-21 00:00:46 +02:00
Jorge Acereda
d8919bf1e8
Fix string assert, simpler/faster conditions.
2019-06-20 12:43:37 +02:00
Jorge Acereda
bbee702f5e
Add some const qualifiers, removed MALLOC() null checks, fixed Float_modf(), use memcpy() instead of memmove().
2019-06-14 14:38:19 +02:00
Jorge Acereda
bbf8c23281
Use standard NDEBUG instead of OPTIMIZE.
2019-06-13 14:29:47 +02:00
hellerve
e9fcf87ff5
core: remove stringcopy.append
2019-05-27 18:05:44 +02:00
Chris Hall
4704a06f32
Adding String.< and String.>
2018-06-26 16:00:33 +10:00
Chris Hall
7c1dd210d7
Renaming: String.count -> String.length, Array.count -> Array.length
...
Issue #236
2018-05-23 10:03:42 +10:00
Erik Svedäng
707614e999
Merge pull request #232 from mkfifo/string-library-improvements
...
String library improvements
2018-05-22 19:10:22 +02:00
Erik Svedäng
6a787b93aa
Merge pull request #240 from hellerve/char-str
...
Split Char.prn and Char.str
2018-05-21 21:31:34 +02:00
hellerve
42918e3ef6
core: split Char.prn and Char.str (only prn should add slashes
2018-05-21 18:26:05 +02:00
Chris Hall
45311a2d92
Adding String.index-of-from
...
Issue #94
2018-05-20 18:44:01 +10:00
Chris Hall
4524188490
Adding String.index-of
...
Issue #94
2018-05-20 18:27:31 +10:00
Chris Hall
56c6133a91
Adding String.allocate function
...
Issue #94
2018-05-20 15:18:34 +10:00
Chris Hall
b46b2a39e8
String.append is now by reference, StringCopy.append is by copy/linear
...
Adding memory leak tests to String.append and StringCopy.append
Issue #94
2018-05-20 14:16:10 +10:00
Chris Hall
148003c241
Adding String.string-set-at!
...
Issue #94
2018-05-20 13:53:30 +10:00
Chris Hall
92832e540e
Adding asserts to String.string-set!
...
Issue #94
2018-05-20 13:31:21 +10:00
Chris Hall
bc43a413e1
Adding String.string-set!
...
Issue #94
2018-05-20 13:28:01 +10:00
Chris Hall
0c881bc0ff
Removing String.duplicate in favour of String.copy
...
Issue #94
2018-05-20 12:05:23 +10:00