75 Commits

Author SHA1 Message Date
gingerBill
78e9a22ffa Fix track_graphemes 2025-10-13 15:47:35 +01:00
gingerBill
2bc7344f27 Add Grapheme_Iterator 2025-10-13 15:28:23 +01:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
gingerBill
b8fdd91c9f Merge pull request #5776 from connnnal/utf8-1-bounds
Disable bounds check for the first utf8 byte
2025-10-09 18:33:24 +01:00
gingerBill
c3d4b1f0b5 Add doc line to core:unicode/utf8/utf8string 2025-10-09 13:37:22 +01:00
gingerBill
857c78c22b Add doc lins to unicode packages 2025-10-09 12:37:18 +01:00
connnnal
ee063e708a Disable bounds check for the first utf8 byte
Known safe from prior `n < 1` check
2025-10-09 11:38:22 +01:00
thetarnav
3317a1f0e9 Add #no_bounds_check to procedures in core:unicode 2025-10-08 22:00:44 +02:00
gingerBill
5a12ccef44 Add unicode.simple_fold; Finish (strings|bytes).equal_fold 2025-10-07 09:40:54 +01:00
gingerBill
bb4bc316a4 for in string16; Support string16 across core 2025-08-02 12:20:35 +01:00
gingerBill
2561427dd3 Add string16 and cstring16 (UTF-16 based strings) 2025-08-02 11:00:15 +01:00
Karl Zylinski
36b958c120 Fix for using utf8string.at with last rune index returning wrong rune. 2024-10-30 11:10:36 +01:00
gingerBill
f047f804f6 Merge pull request #4402 from Lperlind/utf16_rune_count
core/unicode/utf16: add rune_count proc
2024-10-23 15:25:21 +01:00
Lucas Perlind
66c53a1174 core/unicode/utf16: add rune_count proc
This returns the number of runes in a u16 slice
2024-10-21 08:29:07 +11:00
Laytan Laats
60321d98d4 also fix the doc comment in the code generator 2024-09-02 20:22:02 +02:00
gingerBill
8642d719f0 Imply #no_capture to all variadic parameters 2024-07-14 12:19:47 +01:00
gingerBill
c7bd954752 Add more uses of #no_capture 2024-07-14 11:56:04 +01:00
gingerBill
e296d6fb90 Fix loads of indentation issues with mixing spaces and tabs 2024-06-29 19:50:51 +01:00
gingerBill
3f9a58808c More style improvements 2024-06-29 19:07:34 +01:00
gingerBill
7f05b4caf2 Fix generation for unicode entities 2024-06-29 18:43:09 +01:00
Feoramund
e620645a03 Measure East_Asian_Width during grapheme decoding 2024-06-19 22:35:36 -04:00
gingerBill
3d9db56410 Minor formatting changes to unicode stuff 2024-06-18 12:53:56 +01:00
Feoramund
63973f431e Make core:unicode letter procs @(require_results) 2024-06-17 21:57:32 -04:00
Feoramund
1620a69398 Add decode_grapheme_clusters to core:unicode/utf8 2024-06-17 21:57:32 -04:00
Feoramund
1a93dfd28f Fix indentation 2024-06-17 13:24:47 -04:00
gingerBill
3a9b86628a Add @(rodata) and @(static, rodata) where appropriate 2024-06-06 15:23:52 +01:00
gingerBill
fbf01543d1 Remove duplicate table 2024-04-06 16:59:02 +01:00
gingerBill
3e7e779abf Replace core:* to base:* where appropriate 2024-01-28 22:18:51 +00:00
Jeroen van Rijn
4efef08c94 Update core:encoding to Unicode 15.1 table. 2024-01-02 18:03:32 +01:00
gingerBill
14adcb9db8 Use or_break and or_continue where appropriate in the core library 2023-09-30 15:34:39 +01:00
gingerBill
3dec55f009 Replace x in &y Use &v in y syntax through core & vendor for switch/for statements 2023-06-26 15:42:57 +01:00
gingerBill
39bff40a75 Make many core:unicode/utf8 procedures "contextless" 2023-05-25 11:58:42 +01:00
Laytan Laats
5d54b710e7 fix #2550 json encoding should use surrogate pairs per RFC7159 2023-05-22 17:22:33 +02:00
gingerBill
ae9d540c1c Correct naming in tests 2022-07-11 11:55:49 +01:00
gingerBill
84a424f21e Add numerous procedure groups decode_rune, decode_last_rune, rune_count, full_rune 2022-06-16 15:07:07 +01:00
Jeroen van Rijn
c4e0d1efa1 Merge branch 'master' into xml 2022-04-27 14:37:15 +02:00
gingerBill
ae6441182d Add core:unicode/utf8/utf8string to examples/all 2022-03-18 23:32:37 +00:00
Naboris
773cfac449 fix typo 2022-01-08 09:49:21 +01:00
Jeroen van Rijn
2dd67dba89 [core:encoding/entity] Add new package to decode &<entity>; entities.
Includes generator to generate a lookup for named entitiess.
2021-12-05 02:52:23 +01:00
gingerBill
7876660d8c Add new utf16 procedures: decode, decode_to_utf8 2021-11-27 14:57:20 +00:00
gingerBill
0434281f73 Strip semicolons; Make odin strip-semicolon replace .. with ..= if used as a binary operator 2021-09-06 20:15:59 +01:00
gingerBill
720884e0f1 Strip even more semicolons if followed by a } or ) on the same line 2021-08-31 23:47:57 +01:00
gingerBill
251da264ed Remove unneeded semicolons from the core library 2021-08-31 22:21:13 +01:00
gingerBill
f0437a4242 Enforce core:builtin and core:intrinsics for imports 2021-08-21 13:44:16 +01:00
gingerBill
86649e6b44 Core library clean up: Make range expressions more consistent and replace uses of .. with ..= 2021-06-14 11:15:25 +01:00
gingerBill
26ce40c188 Remove @(static) for global variables 2021-05-19 11:51:48 +01: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
740411f207 Minor change to unicode/letter.odin 2020-11-21 23:14:07 +00:00
gingerBill
e8da2ef65e Update package unicode 2020-11-10 19:00:38 +00:00
gingerBill
49e140f4db Add utf8.full_rune 2020-11-10 16:47:56 +00:00