Commit graph

3644 commits

Author SHA1 Message Date
Justin Ethier
61a18d8fb3 WIP 2017-11-07 18:39:12 -05:00
Justin Ethier
d584cf059e Partial fixes to string-set! 2017-11-07 18:13:12 -05:00
Justin Ethier
02014322b7 Properly count bytes in make-string 2017-11-07 17:47:08 -05:00
Justin Ethier
f5787184da WIP - string-set! 2017-11-07 18:18:56 +00:00
Justin Ethier
cfdec73d78 Emit strings with char/byte lengths 2017-11-06 18:57:56 +00:00
Justin Ethier
42507606a5 Added Cyc_string_byte_length() 2017-11-06 17:54:00 +00:00
Justin Ethier
348ed7205c Added a TODO for peek-char and UTF8 2017-11-06 17:46:56 +00:00
Justin Ethier
d43d019c20 Fix UTF8 support for pack_env_variables() 2017-11-06 17:06:12 +00:00
Justin Ethier
ec5ef86b6a Do not use make_string for UTF8 strings 2017-11-06 16:00:55 +00:00
Justin Ethier
471f0d4b50 UTF8 support 2017-11-06 16:00:11 +00:00
Justin Ethier
9962bca854 Validate hex digits in string with the \x; syntax 2017-11-06 14:12:21 +00:00
Justin Ethier
d431b2af1c Updated Cyc_io_read_line to prevent truncation
Ensure last codepoint is fully-read before returning
2017-11-06 13:19:31 +00:00
Justin Ethier
6910e3e4cb Added TODO 2017-11-03 14:51:34 +00:00
Justin Ethier
67398186d0 Added comments 2017-11-03 14:41:58 +00:00
Justin Ethier
bbe8fbb970 Allow read_return_character to parse UTF8 chars 2017-11-02 18:00:10 -04:00
Justin Ethier
3aa2a159b7 Bugfix: Cyc_utf8_encode returns char count, not bytes 2017-11-02 17:41:26 -04:00
Justin Ethier
734a6e1911 Allow read-char to handle unicode characters 2017-10-31 20:54:21 +00:00
Justin Ethier
b1ea22c940 Fixed (string->utf8) 2017-10-31 18:41:52 -04:00
Justin Ethier
509fd43022 Fixed substring 2017-10-31 17:58:17 -04:00
Justin Ethier
950d92615b WIP 2017-10-31 16:46:14 +00:00
Justin Ethier
8585a9f3cc Test scaffold for Cyc_substring 2017-10-30 18:58:47 -04:00
Justin Ethier
a38295b22b WIP 2017-10-30 17:52:16 +00:00
Justin Ethier
118822f353 WIP 2017-10-30 16:57:39 +00:00
Justin Ethier
7f8cc02c50 WIP - obj_char2obj 2017-10-30 13:26:57 +00:00
Justin Ethier
3783da2674 WIP - obj_obj2char fixes 2017-10-30 13:17:37 +00:00
Justin Ethier
0bcce5038e WIP 2017-10-27 17:18:29 +00:00
Justin Ethier
a5d768a8a4 Cyc_io_get_output_string - populate num_cp correctly 2017-10-27 13:17:34 +00:00
Justin Ethier
8289eca02a Remove obsolete function 2017-10-27 13:02:51 +00:00
Justin Ethier
6aaa600ebc Bugfixes:
- Avoid unnecessary calls to `strlen`
- Type check the `fill` parameter to `make-string`
2017-10-27 13:01:04 +00:00
Justin Ethier
4a77296ddf Added UTF-8 support to list->string 2017-10-27 12:44:06 +00:00
Justin Ethier
77e391cabc Uncomment fast path 2017-10-26 22:35:11 +00:00
Justin Ethier
703f863e48 Fixes for make-string 2017-10-26 21:56:35 +00:00
Justin Ethier
0bd0eeb7a6 WIP 2017-10-26 17:04:52 +00:00
Justin Ethier
596f225179 Added memset test code 2017-10-26 13:02:55 +00:00
Justin Ethier
aa0b0a7567 Added UTF8 encoder, final version of string->utf8 2017-10-25 18:35:11 -04:00
Justin Ethier
ccfde220ff WIP 2017-10-25 17:21:53 +00:00
Justin Ethier
96c3846b43 Cleanup 2017-10-25 17:14:10 +00:00
Justin Ethier
556f97dd5f WIP, testing encoders/decoders 2017-10-25 13:54:36 +00:00
Justin Ethier
722d077367 WIP 2017-10-24 19:01:20 -04:00
Justin Ethier
325112e50b Temporary file 2017-10-24 19:00:45 -04:00
Justin Ethier
13e260300f Added utility function and stubs 2017-10-24 17:53:43 -04:00
Justin Ethier
6c4dd4b740 Compute number of code points and byte len 2017-10-24 17:53:09 -04:00
Justin Ethier
13254d06f0 WIP - utf8 / string conversion functions 2017-10-24 13:23:48 +00:00
Justin Ethier
cb1bfef031 WIP - string-set! 2017-10-23 18:47:01 -04:00
Justin Ethier
3e64420101 Added UTF8 support to Cyc_substring 2017-10-23 17:43:37 -04:00
Justin Ethier
424592ad8b Added TODO 2017-10-23 17:10:43 +00:00
Justin Ethier
114e284566 string-length: return number of codepoints 2017-10-23 13:39:04 +00:00
Justin Ethier
96e5692cb9 bugfix 2017-10-23 13:38:02 +00:00
Justin Ethier
8b817966e8 WIP 2017-10-23 13:26:29 +00:00
Justin Ethier
14626f15c4 Unicode changes, take code points into account 2017-10-22 18:59:35 -04:00