nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
all: fix broken markdown comments with missing or unwanted code blocks
[nit.git]
/
lib
/
string_experimentations
/
utf8_noindex.nit
diff --git
a/lib/string_experimentations/utf8_noindex.nit
b/lib/string_experimentations/utf8_noindex.nit
index
db51f0a
..
547cbf7
100644
(file)
--- a/
lib/string_experimentations/utf8_noindex.nit
+++ b/
lib/string_experimentations/utf8_noindex.nit
@@
-53,6
+53,7
@@
extern class UnicodeChar `{ uint32_t* `}
#
# As per the specification :
#
#
# As per the specification :
#
+ # ~~~raw
# Length | UTF-8 octet sequence
# | (binary)
# ---------+-------------------------------------------------
# Length | UTF-8 octet sequence
# | (binary)
# ---------+-------------------------------------------------
@@
-60,6
+61,7
@@
extern class UnicodeChar `{ uint32_t* `}
# 2 | 110xxxxx 10xxxxxx
# 3 | 1110xxxx 10xxxxxx 10xxxxxx
# 4 | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
# 2 | 110xxxxx 10xxxxxx
# 3 | 1110xxxx 10xxxxxx 10xxxxxx
# 4 | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
+ # ~~~
fun len: Int `{
uint32_t s = *recv;
if(s <= 127) {return 1;}
fun len: Int `{
uint32_t s = *recv;
if(s <= 127) {return 1;}