Commit Graph

59 Commits

Author SHA1 Message Date
gingerBill
d33350e3a5 Add truncate_to_byte and truncate_to_rune for packages strings and bytes 2021-04-22 15:49:10 +01:00
gingerBill
3337412228 split*_iterator procedures for package bytes and strings 2021-03-18 13:26:33 +00:00
gingerBill
b727b6438b Minimize unneeded casts 2021-03-03 14:31:17 +00:00
gingerBill
aa93305015 Replace usage of inline proc with #force_inline proc in the core library 2021-02-23 16:14:47 +00:00
gingerBill
2957da538d Add strings.Intern 2020-12-15 22:07:53 +00:00
gingerBill
0ed1300bd6 Make bytes.Reader and strings.Reader have the same interface 2020-12-04 21:25:13 +00:00
gingerBill
edbb3e3b32 Fix typos 2020-12-04 18:53:17 +00:00
gingerBill
ecf324e213 Remove buffered type 2020-12-04 18:50:30 +00:00
gingerBill
7268c80d64 Add strings.fields and strings.fields_proc 2020-12-04 18:50:05 +00:00
gingerBill
5d0db4c63a Clean up fmt usage with io.Writer and strings.Builder 2020-12-04 15:04:54 +00:00
gingerBill
0ef02e6737 Improve packages io and strings; add io.Section_Reader 2020-12-03 15:57:46 +00:00
gingerBill
18da0b3418 Integrate package io into core library 2020-12-03 10:45:26 +00:00
gingerBill
c4172e3914 Rename stream field names 2020-12-02 23:17:21 +00:00
gingerBill
8e08ae47fb Add strings.Reader 2020-12-02 23:12:43 +00:00
gingerBill
fef5172278 Add %q for runes in fmt 2020-11-18 23:40:54 +00:00
gingerBill
11577db6a8 Minor fixes 2020-11-17 16:36:33 +00:00
gingerBill
fa284f9a5a Fix import paths 2020-11-12 14:20:33 +00:00
gingerBill
78b6948ff2 Reorganize package strings 2020-11-12 14:17:41 +00:00
gingerBill
063c0548b0 Add new package strings procedures: trim_prefix, trim_suffix, to_valid_utf8 2020-10-16 15:30:14 +01:00
gingerBill
e83af93394 Allow flushing with strings.Builder; Make fmt.fprint* procedures use a custom flush procedure 2020-10-01 12:03:20 +01:00
gingerBill
fc4fdd588e Remove usage of do in core library 2020-09-23 17:17:14 +01:00
gingerBill
642afa4f88 Fix new package path 2020-07-10 08:42:22 +01:00
gingerBill
f65fa0e4a6 Merge pull request #339 from dotbmp/master
"core:path" Path library and "core:strings" `split` Utilities
2020-07-10 08:25:24 +01:00
gingerBill
5b7c83d871 Add strings.pop_byte strings.pop_rune 2020-07-08 23:15:48 +01:00
gingerBill
a7dd686859 Add #caller_location to strings.clone; remove deprecated procedures in package strings 2020-06-08 11:42:38 +01:00
gingerBill
a2c50d3666 Fix -vet for strings 2020-05-24 17:57:55 +01:00
gingerBill
f06efffe22 Update strings case convertors to be unicode compliant 2020-05-24 17:50:27 +01:00
gingerBill
e42f7008fc Change spaces to tabs 2020-05-24 16:40:48 +01:00
Mikkel Hjortshoej
c035fc337f Add case conversions by @dotbmp 2020-05-24 12:47:43 +02:00
gingerBill
e92fdb4a99 x if cond else y and x when cond else y expressions 2020-03-05 20:34:30 +00:00
Tetralux
1f0c1943da Fix #552.
- Fix comparisons involving one or more empty string.
- Fix comparisons against two strings of different lengths.
2020-02-12 11:25:12 +00:00
gingerBill
6b5ea011e7 Add strings.ptr_from_string 2019-12-01 18:06:49 +00:00
gingerBill
9503440eb0 Add strings.unsafe_string_to_cstring 2019-12-01 17:45:07 +00:00
gingerBill
9db81498d8 Make the string type elements "immutable", akin to char const * in C
Allows for extra security and optimization benefits
2019-12-01 14:10:59 +00:00
Hasen Judy
c35762528c fix string reversal 2019-11-13 23:36:52 +09:00
gingerBill
1b8c3ca22a Fix typos and make demo work with -vet 2019-10-08 20:28:45 +01:00
gingerBill
4e8a801b35 strings.split; strings.index; eprint* over print*_err; 2019-10-06 18:13:15 +01:00
gingerBill
f25818e923 Make procedure parameters just named values rather than copied variables 2019-07-15 21:18:37 +01:00
Zilarrezko
d2faa9bef1 make_builder function now properly uses given allocator 2019-05-18 18:57:34 -07:00
Brendan Punsky
e3d1d1d85c Merge branch 'master' into master 2019-03-18 17:22:57 -04:00
gingerBill
fdb60b2d51 Improve package strings 2019-03-15 18:30:39 +00:00
Brendan Punsky
eadb66c9ef Merge branch 'master' into master 2019-03-13 16:45:46 -04:00
Jeroen van Rijn
d852b0c948 Add win32.get_cwd to return the current working directory 2019-03-09 11:08:50 +01:00
gingerBill
a9ab90bd24 Make static an attribute rather than a keyword prefix 2019-02-23 22:17:27 +00:00
Brendan Punsky
772dc47f55 Oops, I forgot to stage core/strings/strings.odin 2019-02-12 17:30:46 -05:00
gingerBill
345e790f52 Remove dead code 2019-01-24 15:52:51 +00:00
gingerBill
3113e8c892 Minimize buffer size for write_u64 and write_i64 2019-01-13 21:40:18 +00:00
gingerBill
6c21e99832 json.marshal 2019-01-06 23:32:50 +00:00
gingerBill
6295f6747f strings.write_quoted_string 2019-01-06 22:16:14 +00:00
gingerBill
64f84ef9a3 fmt.printf("%q", str); (quotes strings) 2019-01-06 22:11:45 +00:00