aboutsummaryrefslogtreecommitdiff
path: root/core/strings/strings.odin
Commit message (Collapse)AuthorAgeFilesLines
* strings.compare() can be an alias of runtime.string_cmp()Shane Shrybman3 days1-9/+1
|
* Add the length checks back to string.compare()Shane Shrybman3 days1-1/+7
|
* strings.compare() can wrap runtime.string_cmp()Shane Shrybman3 days1-9/+1
|
* Remove core:mem dependency from core:stringsShane Shrybman3 days1-34/+41
|
* Fix #6198Jeroen van Rijn2026-01-311-35/+60
|
* Fix typo in strings.equal_foldgingerBill2026-01-161-1/+1
|
* Fix detached commentJeroen van Rijn2025-10-201-1/+0
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* Add some more docsgingerBill2025-10-071-2/+7
|
* Deprecate old @(deprecated) things.Jeroen van Rijn2025-06-061-64/+82
|
* Fix doctestJeroen van Rijn2025-05-311-5/+4
|
* Vectorize `strings.prefix_length`.Jeroen van Rijn2025-05-311-17/+47
| | | | Also add `strings.common_prefix`.
* Remove redundant calls to builder_initmtarik34b2025-04-161-2/+0
|
* Fix broken examples in documentation tester.Jeroen van Rijn2025-04-051-1/+1
| | | | | | | | | No more: ``` We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo" The following procedures were found: bar() ```
* Remove unneeded slicing in `strings.clone`Feoramund2025-03-051-1/+1
|
* Small optimizationJacob Friedman2025-02-041-1/+3
|
* Fix unicode handlingJacob Friedman2025-02-041-1/+6
|
* Fix strings.split_iterator when separator is emptyJacob Friedman2025-02-041-6/+2
|
* improve `strings.index_multi`Adam Zadrożny2024-12-041-1/+2
| | | | | | | There's no point searching for substrings after lowest_index, so let's not. This significantly improves performance on long strings.
* Fix #4359Jeroen van Rijn2024-10-091-1/+1
| | | | Fixes #4359
* wasm: support more vendor librariesLaytan Laats2024-09-091-7/+7
| | | | | | | | Adds support for: - box2d - cgltf - stb image - stb rect pack
* Merge pull request #4192 from laytan/strings-substring-rune-wiseJeroen van Rijn2024-09-031-0/+103
|\ | | | | strings: add `substring`, `substring_to` and `substring_from`
| * strings: add `substring`, `substring_to` and `substring_from`Laytan Laats2024-09-031-0/+103
| |
* | strings.cut without allocation.Jeroen van Rijn2024-09-031-42/+53
|/
* Fix random typogingerBill2024-08-191-1/+1
|
* Add `strings.contains_space`gingerBill2024-08-191-0/+11
|
* Merge pull request #3971 from jasonKercher/os2-process-linuxgingerBill2024-08-161-1/+4
|\ | | | | os2 process linux implementation
| * update core:filepath's clean, join and split_list to return optional ↵jason2024-08-161-1/+4
| | | | | | | | Allocator_Errors
* | Merge `core:simd/util` into `core:bytes`Feoramund2024-08-101-32/+3
| |
* | Make `simd_util` index procs `contextless` where applicableFeoramund2024-08-091-2/+2
| |
* | Simplify and make `simd_util` cross-platformFeoramund2024-08-091-14/+4
| | | | | | | | | | | | | | | | 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.
* | Use vectorized `index_*` procs in `core`Feoramund2024-08-061-8/+39
|/
* Add aliases `starts_with` and `ends_with`gingerBill2024-07-101-0/+6
|
* Remove nil checks.Jeroen van Rijn2024-07-061-9/+1
| | | | | | | 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.
* Correct #soa RTTI usagegingerBill2024-05-161-2/+2
|
* correct newly found vetsLaytan Laats2024-04-031-1/+1
|
* fix strings.last_index_any for single charWalther Chen2023-12-181-1/+2
|
* strings: Fix up documentation of split_nflysand72023-12-051-0/+1
|
* Strings makes added caller functionPix2023-08-151-23/+23
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-261-4/+4
| | | | `switch`/`for` statements
* Fix indentationdev-2023-05gingerBill2023-05-031-3/+3
|
* fix typo, add builder sampleJon Lipstate2023-04-261-1/+1
|
* Document return values of strings and add allocator errors whereLucas Perlind2023-04-071-261/+306
| | | | possible
* correct errorsJon Lipstate2023-04-051-2/+0
|
* Small improvements strings documentationLucas Perlind2023-04-031-237/+305
| | | | | | | | * 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
* Enforce example names in documentationLucas Perlind2023-04-011-47/+47
|
* Fix website formatting and incorrect examplesLucas Perlind2023-03-291-93/+183
|
* harmonize to use null for c-string endingsJon Lipstate2023-03-281-1/+1
|
* rename nul to null, allocation clarificationsJon Lipstate2023-03-281-41/+44
|
* add backticks on variables, code review commentsJon Lipstate2023-03-281-92/+92
|