aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/view.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-08-30 04:15:36 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-09 18:22:21 +0200
commit7507ad3e1816f3bc9004dceb39bb303804287438 (patch)
tree3c4b2746b56a0538564dbf0416745012b51228fa /src/view.h
parent90bad24f96deeaaa2255f0ad89ece21d5397b78b (diff)
downloadsciteco-7507ad3e1816f3bc9004dceb39bb303804287438.tar.gz
Unicode support for the Q-Register commands (refs #5)
* this required adding several Q-Register vtable methods * it should still be investigated whether the repeated calling of SCI_ALLOCATELINECHARACTERINDEX causes any overhead.
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view.h b/src/view.h
index 15a09cd..a395dcf 100644
--- a/src/view.h
+++ b/src/view.h
@@ -70,3 +70,7 @@ gboolean teco_view_save_to_file(teco_view_t *ctx, const gchar *filename, GError
/** @pure @memberof teco_view_t */
void teco_view_free(teco_view_t *ctx);
+
+gssize teco_view_glyphs2bytes(teco_view_t *ctx, teco_int_t pos);
+teco_int_t teco_view_bytes2glyphs(teco_view_t *ctx, gsize pos);
+gssize teco_view_glyphs2bytes_relative(teco_view_t *ctx, gsize pos, teco_int_t n);