summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
authortylov <[email protected]>2023-08-17 09:54:16 +0200
committertylov <[email protected]>2023-08-17 09:54:16 +0200
commit311f12d7005351ca245aa1df77889d8db4899862 (patch)
tree91d98717390df1394fb4dc0e3a354551e989aa9b /include/stc/forward.h
parentbe0e64a9a19d3ca459284c61c497d141a78df1d7 (diff)
downloadSTC-modified-311f12d7005351ca245aa1df77889d8db4899862.tar.gz
STC-modified-311f12d7005351ca245aa1df77889d8db4899862.zip
Simplified access to utf8 character .chr in cstr / csview / crawstr iterators. Backward compatibility kept, but deprecated.
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h
index 9f7a0063..2372a618 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -48,6 +48,7 @@ typedef struct csview {
typedef union {
csview_value* ref;
+ csview chr;
struct { csview chr; csview_value* end; } u8;
} csview_iter;
@@ -61,7 +62,8 @@ typedef struct crawstr {
typedef union {
crawstr_value* ref;
- struct { csview chr; } u8;
+ csview chr;
+ struct { csview chr; } u8; // [deprecated]
} crawstr_iter;
@@ -75,7 +77,8 @@ typedef union cstr {
typedef union {
cstr_value* ref;
- struct { csview chr; } u8;
+ csview chr;
+ struct { csview chr; } u8; // [deprecated]
} cstr_iter;