diff options
Diffstat (limited to 'apps/tile/word.mu')
-rw-r--r-- | apps/tile/word.mu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tile/word.mu b/apps/tile/word.mu index 07e5280f..70c2eafb 100644 --- a/apps/tile/word.mu +++ b/apps/tile/word.mu @@ -92,6 +92,12 @@ fn final-word _self: (addr word) -> result/eax: (addr word) { result <- copy out } +fn first-grapheme _self: (addr word) -> result/eax: grapheme { + var self/esi: (addr word) <- copy _self + var data/eax: (addr gap-buffer) <- get self, data + result <- first-grapheme-in-gap-buffer data +} + fn add-grapheme-to-word _self: (addr word), c: grapheme { var self/esi: (addr word) <- copy _self var data/eax: (addr gap-buffer) <- get self, data |