Commit Graph

92 Commits

Author SHA1 Message Date
StudebakerGuy
9d038b23ec Add generated tables to core/unicode 2026-03-09 19:48:09 +01:00
StudebakerGuy
8f579d1f3b Added program to generate Unicode Table
This adds a program that will generate tables for use by the `core/unicode`
package. The table generated file will be `core/unicode/generated.odin`

It may be better to incorporate this into `generate_entity_table.odin`.
This can easily be accomplised if desired.
2026-03-09 19:48:09 +01:00
Jeroen van Rijn
82b3917300 Update unicode.xml to 17 2026-02-21 14:02:41 +01:00
Jeroen van Rijn
98b65f2c2e Update unicode generator + test 2026-02-21 01:54:17 +01:00
Krzesimir Nowak
a90f2ad3a0 Print errors in tools and examples to stderr 2026-02-17 23:08:32 +01:00
Krzesimir Nowak
47775214d6 Fix some tools and examples after core:os update and using-stmt feature 2026-02-17 21:58:08 +01:00
Wrath
06b10f9ae8 Add #optional_allocator_error 2026-02-16 14:40:37 -05:00
wrathdoesthat
f0912ce4c2 Merge branch 'odin-lang:master' into master 2026-02-16 14:38:22 -05:00
Wrath
5c5e337172 Propagate allocator errors from certain unicode functions 2026-02-15 22:27:30 -05:00
DuchGhast
c1df42d991 Fix utf8 validation 2026-02-15 14:49:50 +00:00
Jeroen van Rijn
e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn
8b3ae667f4 More conflicts during rebase 2026-02-08 12:50:19 +01:00
Jeroen van Rijn
3a7c4994ac Fix #6204
Use temporary stack buffers and some global scratch space to remove the need for any allocator.
2026-02-02 13:11:23 +01:00
gingerBill
db26fb8a21 Add missing @(require_results) to procedures 2026-01-28 13:39:51 +00:00
gingerBill
625e17212d Correct 2 rune printing 2026-01-18 12:13:03 +00:00
gingerBill
23198f7917 Move html escaping calls and fix existing generator 2026-01-18 11:45:40 +00:00
Dusty Miller
cb98a83f77 Update letter.odin
Fix MAX_RUNE to include planes up to 16.
2025-12-22 20:16:24 -06:00
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