Jeroen van Rijn
6f23b5bb60
Fix #4359
...
Fixes #4359
2024-10-09 14:31:01 +02:00
Laytan Laats
5ae27c6ebc
wasm: support more vendor libraries
...
Adds support for:
- box2d
- cgltf
- stb image
- stb rect pack
2024-09-09 18:49:13 +02:00
Jeroen van Rijn
645207b8b0
Merge pull request #4192 from laytan/strings-substring-rune-wise
...
strings: add `substring`, `substring_to` and `substring_from`
2024-09-03 22:47:56 +02:00
Laytan Laats
597ba796b7
strings: add substring, substring_to and substring_from
2024-09-03 21:13:35 +02:00
Jeroen van Rijn
996175753c
strings.cut without allocation.
2024-09-03 19:02:40 +02:00
gingerBill
2999c02f65
Fix random typo
2024-08-19 16:33:17 +01:00
gingerBill
9d7ab8d5ca
Add strings.contains_space
2024-08-19 16:31:03 +01:00
gingerBill
31bb3dc4f0
Merge pull request #3971 from jasonKercher/os2-process-linux
...
os2 process linux implementation
2024-08-16 12:38:27 +01:00
jason
07a9c69714
update core:filepath's clean, join and split_list to return optional Allocator_Errors
2024-08-16 01:48:27 -04:00
Feoramund
c69fa87d53
Merge core:simd/util into core:bytes
2024-08-10 07:17:03 -04:00
Feoramund
c8a62ee4ec
Make simd_util index procs contextless where applicable
2024-08-09 18:54:04 -04:00
Feoramund
12dd0cb72a
Simplify and make simd_util cross-platform
...
This new algorithm uses a Scalar->Vector->Scalar iteration loop which
requires no masking off of any incomplete data chunks.
Also, the width was reduced to 32 bytes instead of 64, as I found this
to be about as fast as the previous 64-byte x86 version.
2024-08-09 18:54:04 -04:00
Feoramund
f66fcd9acb
Use vectorized index_* procs in core
2024-08-06 15:19:05 -04:00
gingerBill
f75a45c3fa
Add aliases starts_with and ends_with
2024-07-10 16:34:15 +01:00
Jeroen van Rijn
258f120d52
Remove nil checks.
...
The caller should really not pass `foo: ^string = nil`. A `for ch, in foo` would also crash,
so let's not introduce new semantics for iteration.
A caller shouldn't pass garbage if they can help it, and a `nil` ^string is not a useful ZII usage here.
2024-07-06 18:34:52 +02:00
gingerBill
7cf62f00c3
Correct #soa RTTI usage
2024-05-16 16:30:45 +01:00
Laytan Laats
3a0df80066
correct newly found vets
2024-04-03 00:52:58 +02:00
Walther Chen
031b0cc534
fix strings.last_index_any for single char
2023-12-18 11:55:45 -05:00
flysand7
2e1b2dc3ba
strings: Fix up documentation of split_n
2023-12-05 23:17:19 +11:00
Pix
2ab5eb7213
Strings makes added caller function
2023-08-15 12:31:06 +08: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
0c3522133d
Fix indentation
2023-05-03 14:22:38 +01:00
Jon Lipstate
67fa5df89c
fix typo, add builder sample
2023-04-26 18:00:14 -07:00
Lucas Perlind
e0d9092df8
Document return values of strings and add allocator errors where
...
possible
2023-04-07 20:39:01 +10:00
Jon Lipstate
0f1c5b3891
correct errors
2023-04-05 22:22:16 -07:00
Lucas Perlind
67e6f57192
Small improvements strings documentation
...
* Use new 'Returns:' and 'Inputs:' keywords used by the website generator
* Make order item order resemble website, i.e. 'Returns:' comes before
'Example:'
* Add a few missing input items
* Add a few missing return items
2023-04-03 08:44:14 +10:00
Lucas Perlind
6ff0cc0b40
Enforce example names in documentation
2023-04-01 09:13:15 +11:00
Lucas Perlind
84d8798ad3
Fix website formatting and incorrect examples
2023-03-29 12:19:05 +11:00
Jon Lipstate
bbafc3fbd6
harmonize to use null for c-string endings
2023-03-28 11:57:12 -07:00
Jon Lipstate
194fa7cd98
rename nul to null, allocation clarifications
2023-03-28 11:51:39 -07:00
Jon Lipstate
6dce07790a
add backticks on variables, code review comments
2023-03-28 11:07:33 -07:00
Jon Lipstate
203ae32b79
pr pickups
2023-03-28 10:24:41 -07:00
Jon Lipstate
7de67f8c1b
markdown compliant spaces
2023-03-27 22:20:24 -07:00
Jon Lipstate
f5d66bcb6f
transform into odin-site parsable format
2023-03-27 22:00:53 -07:00
Jon Lipstate
bf82c40964
string code docs
2023-03-27 20:09:51 -07:00
gingerBill
74fb74d9cb
Keep -vet happy
2023-03-16 16:41:22 +00:00
gingerBill
97d7e295dd
Fix to split_multi_iterator
2023-03-16 16:35:30 +00:00
gingerBill
0727e91aeb
Simplify the implementation of strings.split_multi; add strings.index_multi
2023-03-16 16:30:48 +00:00
gingerBill
133af6f826
Remove delete with wrong allocator
2023-03-07 15:24:59 +00:00
gingerBill
986cba584e
Add runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD where appropriate
2023-02-10 16:23:33 +00:00
gingerBill
c4d19dfa92
Use uint instead of int to improve code generation for bounds checking
2022-09-27 22:31:46 +01:00
Adam Rasburn
0f036eebc0
doc fix for strings.last_index_any
2022-09-12 07:37:15 +12:00
Ricardo Silva
2239e43faf
Fix strings.*_justify
2022-09-07 08:56:23 +01:00
gingerBill
c90b7c38f1
Rename strings.Builder procedures to be consistent with the rest of the core library
2022-07-11 11:50:08 +01:00
Jeroen van Rijn
6f1222e9bf
Update strings.prefix_length to handle partial UTF-8 runes.
2022-06-16 16:12:15 +02:00
Jeroen van Rijn
9f413862e9
Add strings.prefix_length & slice.prefix_length
2022-06-16 12:34:13 +02:00
gingerBill
ccb38c3dc6
Add _safe versions
2022-05-12 12:54:14 +01:00
hikari
f026753692
strings: levenshtein_distance: remove do
2022-04-21 21:19:43 +03:00
hikari
71b1cce517
strings: levenshtein_distance: 64 is actually faster than 256
2022-04-21 21:19:11 +03:00
hikari
d8f0da164b
strings: levenshtein_distance: improve potential caching
2022-04-21 21:15:11 +03:00