aboutsummaryrefslogtreecommitdiff
path: root/core/strings
Commit message (Collapse)AuthorAgeFilesLines
* Fix loads of indentation issues with mixing spaces and tabsgingerBill2024-06-291-1/+1
|
* Made default capacity of dynamic arrays more consistent.Karl Zylinski2024-06-291-6/+6
| | | | | | | | | Before this if you do `arr: [dynamic]int` and then append to arr, then it will have capacity 8. But if you did `arr := make([dynamic]int, context.temp_allocator)` then arr would have capacity 16. Now both `arr: [dynamic]int` and `arr := make([dynamic]int, context.temp_allocator)` will resut in arr having zero 0. The only reason to use `make` without an explicit len or cap now is because you want to set it up for a non-default allocator. After the first call to `append` it will now in both cases have capacity 8. I also updated the documentation on the strings builder, both to reflect this, and also to fix it incorrectly saying that len would be 'max(16,len)', which wasn't true even before these changes.
* Merge pull request #3517 from timosperisen/patch-1gingerBill2024-06-281-2/+2
|\ | | | | Update builder.odin
| * Update builder.odinTimo2024-04-291-2/+2
| | | | | | | | | | Modify documentation-text for procedure write_f64 : change type f32 to f64
* | drop unnecessary deferJustin Snyder2024-06-191-1/+1
| |
* | fix typoJustin Snyder2024-06-191-1/+1
| | | | | | | | apparently i had a moment of dyslexia
* | trim added null byteJustin Snyder2024-06-191-16/+3
| |
* | Add builder to_cstringJustin Snyder2024-06-191-0/+27
| |
* | Update `tests\core\encoding\cbor` to use new test runner.Jeroen van Rijn2024-06-021-4/+4
| | | | | | | | | | | | It was leaky and required a substantial number of `loc := #caller_location` additions to parts of the core library to make it easier to track down how and where it leaked. The tests now run fine multi-threaded.
* | Correct #soa RTTI usagegingerBill2024-05-161-2/+2
|/
* correct newly found vetsLaytan Laats2024-04-031-1/+1
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-282-2/+2
|
* fix strings.last_index_any for single charWalther Chen2023-12-181-1/+2
|
* strings: Fix up documentation of split_nflysand72023-12-051-0/+1
|
* Expose strings.ascii_set_* functionsFourteenBrush2023-11-121-1/+0
|
* Strings makes added caller functionPix2023-08-151-23/+23
|
* Intern add location to init.Pix2023-08-151-2/+2
|
* Builder makes added caller locationPix2023-08-151-12/+12
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-261-4/+4
| | | | `switch`/`for` statements
* Update to new io interfacegingerBill2023-06-082-64/+35
|
* Fix indentationdev-2023-05gingerBill2023-05-031-3/+3
|
* update builder sampleJon Lipstate2023-04-261-6/+5
|
* fix typo, add builder sampleJon Lipstate2023-04-262-2/+28
|
* Document return values of strings and add allocator errors whereLucas Perlind2023-04-076-389/+454
| | | | possible
* correct errorsJon Lipstate2023-04-051-2/+0
|
* Small improvements strings documentationLucas Perlind2023-04-036-401/+484
| | | | | | | | * 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-013-64/+64
|
* Fix website formatting and incorrect examplesLucas Perlind2023-03-296-153/+301
|
* harmonize to use null for c-string endingsJon Lipstate2023-03-281-1/+1
|
* rename nul to null, allocation clarificationsJon Lipstate2023-03-282-44/+47
|
* add backticks on variables, code review commentsJon Lipstate2023-03-284-129/+127
|
* pr pickupsJon Lipstate2023-03-282-12/+28
|
* add missing eof newlineJon Lipstate2023-03-271-1/+1
|
* markdown compliant spacesJon Lipstate2023-03-276-302/+302
|
* transform into odin-site parsable formatJon Lipstate2023-03-276-642/+1315
|
* string code docsJon Lipstate2023-03-276-528/+1825
|
* Fix strings.to_ada_case()oskarnp2023-03-231-30/+11
|
* Keep `-vet` happygingerBill2023-03-161-2/+0
|
* Fix to `split_multi_iterator`gingerBill2023-03-161-0/+1
|
* Simplify the implementation of `strings.split_multi`; add `strings.index_multi`gingerBill2023-03-161-108/+74
|
* Minor fixesgingerBill2023-03-161-2/+6
|
* Fix documentation example of strings.to_upperWilliam Roe2023-03-101-2/+2
| | | This looks like it was a copy/paste mistake
* Remove `delete` with wrong allocatorgingerBill2023-03-071-1/+1
|
* Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-101-0/+3
|
* Don't write leading + unless +Inf or we ask for it.Jeroen van Rijn2022-11-141-4/+18
|
* Add `write_(f16|f32|f64)` callsgingerBill2022-11-141-0/+23
|
* add floats to string builderColin Davidson2022-11-141-0/+7
|
* Use `uint` instead of `int` to improve code generation for bounds checkinggingerBill2022-09-271-1/+1
|
* Clean up of the core library to make the stream vtables not be pointers ↵gingerBill2022-09-152-4/+4
| | | | directly.
* doc fix for strings.last_index_anyAdam Rasburn2022-09-121-6/+6
|