aboutsummaryrefslogtreecommitdiff
path: root/core/strings/builder.odin
Commit message (Collapse)AuthorAgeFilesLines
* Add missing caller location param to append in strings builderDamian Tarnawski2025-09-101-6/+6
|
* Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-051-6/+6
|
* Make strings.to_cstring adhere to #optional_allocator_errorJeroen van Rijn2025-05-121-1/+1
|
* Fix #4890Feoramund2025-02-271-1/+24
| | | | | | `strings.to_cstring` previously would not check if the buffer could handle the extra null byte and could lead to segmentation violations when using the resulting string in an API expecting the terminator.
* Minor style changegingerBill2024-08-131-2/+2
|
* 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.
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Builder makes added caller locationPix2023-08-151-12/+12
|
* Update to new io interfacegingerBill2023-06-081-25/+16
|
* update builder sampleJon Lipstate2023-04-261-6/+5
|
* fix typo, add builder sampleJon Lipstate2023-04-261-1/+27
|
* Document return values of strings and add allocator errors whereLucas Perlind2023-04-071-65/+65
| | | | possible
* Small improvements strings documentationLucas Perlind2023-04-031-89/+97
| | | | | | | | * 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-8/+8
|
* Fix website formatting and incorrect examplesLucas Perlind2023-03-291-34/+68
|
* pr pickupsJon Lipstate2023-03-281-7/+23
|
* markdown compliant spacesJon Lipstate2023-03-271-68/+68
|
* transform into odin-site parsable formatJon Lipstate2023-03-271-120/+188
|
* string code docsJon Lipstate2023-03-271-84/+369
|
* Minor fixesgingerBill2023-03-161-2/+6
|
* 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
|
* Clean up of the core library to make the stream vtables not be pointers ↵gingerBill2022-09-151-2/+2
| | | | directly.
* Rename strings.Builder procedures to be consistent with the rest of the core ↵gingerBill2022-07-111-105/+43
| | | | library
* Remove `strings` dependency from `core:sys/windows`gingerBill2022-06-021-6/+6
|
* Convert all uses of `*_from_slice` to `*_from_bytes` where appropriategingerBill2022-05-161-2/+3
|
* documentation for the rest of the strings libraryMichael Kutowski2022-04-031-13/+117
|
* Remove deprecation from the build specific proceduresgingerBill2021-09-301-3/+0
|
* Correct `_builder_stream_vtable`gingerBill2021-09-291-6/+6
|
* Deprecate `strings.write_quoted_*` in favour of `io.write_quoted_*`; make ↵gingerBill2021-09-291-1/+8
| | | | `reflect.write_type` a little more robust with `io.Error` handling
* Make the io/conv.odin utilities be `#optional_ok`gingerBill2021-09-291-2/+1
|
* Add `io.write_quoted_*` utility procedures to `package io`gingerBill2021-09-291-122/+10
|
* Simplify `strings.write_byte` and `strings.write_bytes`gingerBill2021-09-091-20/+8
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-155/+155
|
* Core library clean up: Make range expressions more consistent and replace ↵gingerBill2021-06-141-2/+2
| | | | uses of `..` with `..=`
* Remove @(static) for global variablesgingerBill2021-05-191-1/+1
|
* Minimize unneeded castsgingerBill2021-03-031-1/+1
|
* Clean up `fmt` usage with `io.Writer` and `strings.Builder`gingerBill2020-12-041-30/+0
|
* Improve packages io and strings; add io.Section_ReadergingerBill2020-12-031-26/+18
|
* Integrate `package io` into core librarygingerBill2020-12-031-62/+161
|
* Rename stream field namesgingerBill2020-12-021-0/+18
|
* Add `%q` for runes in fmtgingerBill2020-11-181-0/+16
|