aboutsummaryrefslogtreecommitdiff
path: root/core/container/bit_array
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:container/bit_array`.Jeroen van Rijn3 days1-2/+1
|
* Render examples.Jeroen van Rijn2025-10-101-7/+7
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* More package linesJeroen van Rijn2025-10-091-1/+1
|
* Add more package lines for the docsJeroen van Rijn2025-10-091-2/+4
|
* container/bit_array: add 'init' procedureLaytan Laats2024-09-291-6/+35
|
* Merge pull request #4191 from laytan/improve-package-doc-commentsgingerBill2024-09-041-4/+4
|\ | | | | core: improve package doc comments for the documentation generator
| * core: improve package doc comments for the documentation generatorLaytan Laats2024-09-031-4/+4
| |
* | Change `Bit_Array.max_index` to `length`Feoramund2024-09-031-18/+34
| | | | | | | | This will allow correct iteration of empty `bit_array`s.
* | Fix iteration of biased `Bit_Array`Feoramund2024-09-031-3/+3
| |
* | Add `bit_array.shrink`Feoramund2024-09-031-0/+30
| |
* | Let `bit_array.create` make zero-length arraysFeoramund2024-09-031-1/+1
|/
* Update `core` to `-strict-style`gingerBill2024-06-291-2/+5
|
* Even more style fixesgingerBill2024-06-291-2/+2
|
* Update numerous package declaration namesgingerBill2024-04-182-2/+2
|
* Fix the format of some `doc.odin` files of the `core` library which did not ↵Maurizio M. Gavioli2024-04-141-38/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | made into the documentation. `c/frontend/tokenizer`: add proper "Example:" header to demo example code, removed empty lines. `container/bit_array`: moved comment before package; aligned narrative lines to left margin; converted case lines into bulleted lines ("- "); converted individual examples to single-tab-indented preformatted text. `dynlib`: removed "//+build ignore" line; added newline at EOF. `image/netpmb`: converted indented lines of "Reading", "Wrting" and "Some syntax..." into bulleted lists; "Formats" indented lines kept as they are as the preformatted text seems relevant to keep the alignments; doubly indented lines kept as single-indented to keep them different (as the format does not allow for two-level bulleted lists); removed empy lines. `os/os2`: WIP, not modified `sys/info`: removed "//+build ignore" line; converted tab-indented initial description into regular left-margin comment; moved uncommented sample code within the doc comment as an "Example:"; moved simple- and double-tabbed separate comments with sample Windows and macOS outputs within the doc comment as bulleted headlines with preformatted output listings; removed now empty comments and blank lines after the package line. `text/i18n`: removed "//+build ignore" line; moved the pacakge line at the end; de-indented the tab-indented introductory narrative; moved sample code comments into the doc comment as tab-indented code with a proper "Example:" heading; removed "```" MD attempts at code formatting. `text/table`: unindented the comment lines of a descriptive kind; headlines of major subdivisions are marked as bold; kept code samples as tab-indented preformatted text (as there are several of them, the standard "Example:" and "Output:" headings cannot be used) removing the "```" MD attempts at code formatting; removed in-between blank lines.
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* added set overload, made make explicitJon Lipstate2023-05-021-24/+17
|
* update docs, add unsafe_get/set, add round up to createJon Lipstate2023-04-301-61/+127
|
* unset functionJungerBoyo2022-06-031-0/+27
| | | unset function, clear single bits
* [bit_array] Really fix the leak.Jeroen van Rijn2022-03-062-17/+22
|
* Fix leak in `core:container/bit_array`Andrea Piseri2022-03-061-1/+2
| | | | | | calling `clear` on a `bit_array` no longer leaks the previous allocation, instead it sets all bits to `false` preserving the same backing dynamic array.
* replace a branch with `max` in `core:container/bit_array.set`ap296002022-02-051-1/+1
|
* rename iterator proceduresAndrea Piseri2022-02-051-3/+3
|
* Update interface to allow more modes of iterationAndrea Piseri2022-02-051-21/+90
| | | | | | | | | | It's now possible to iterate over: - all keys in the range min_value ..= max_value, with `iterate_all` - all set keys in the bit array, with `iterate_set` - all unset keys in the range min_value ..= max_value, with `iterate_unset` `Bit_Array` now stores the `max_value` provided during construction, and updates it when a key that was previously out of range is set.
* rename `iterator` proc to `next`, add named return valuesap296002022-02-041-1/+1
|
* add `iterator` to `core:container/bit_array`Andrea Piseri2022-02-041-1/+42
|
* bit_array: Fix initial size.Jeroen van Rijn2022-01-251-1/+1
|
* [core:container/bit_vector] Create new package.Jeroen van Rijn2021-12-282-0/+176
A dynamic bit array, optionally allowing negative indices.