en:pfw:string_handling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pfw:string_handling [2023-09-03 22:27] – albert | en:pfw:string_handling [2024-04-17 15:58] – [Construction of strings] willem | ||
---|---|---|---|
Line 10: | Line 10: | ||
(We define) A few words that make string manipulation in forth a little smoother.\\ | (We define) A few words that make string manipulation in forth a little smoother.\\ | ||
- | Original idea [[https:// | + | Original idea Albert Nijhof & [[https:// |
* Manipulate files | * Manipulate files | ||
Line 26: | Line 26: | ||
{{https:// | {{https:// | ||
- | However it more useful to use a construct of a cell containing a byte count followed by that many bytes. | + | |
- | You should not store a count in a character unless there is a dire need to conserve space. | + | |
- | Also a string in Chinese is some of the UTF representation is a sequence, | + | |
- | where an interpretation of a byte is dependant on previous bytes. | + | |
- | The abstraction presented here work equally well on this kind of data structure. | + | |
===== Pseudo code ===== | ===== Pseudo code ===== |
en/pfw/string_handling.txt · Last modified: 2024-06-05 22:53 by willem