summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-07-04 23:01:16 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-07-04 23:07:18 +0900
commit991bdd4ed7b0aa6fd6bee4fa5c62283365dcf15d (patch)
tree260ebd44581919a1b209d11f2d98ac7340a79a3d /include
parentf4f3ced955ec2849f1f5e0be6ffdcac923078db6 (diff)
downloadmruby-991bdd4ed7b0aa6fd6bee4fa5c62283365dcf15d.tar.gz
mruby-991bdd4ed7b0aa6fd6bee4fa5c62283365dcf15d.zip
Rename `MRB_STR_NO_UTF` to 'MRB_STR_ASCII`; close #4550
In #4550, @shuuji proposed the name name `MRB_STR_NO_MULTI_BYTE` for more precise description. Although I agree that the name name is correct, but the flag means the string does not contain multi byte UTF-8 characters, i.e. all characters fit in the range of ASCII.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index b563541cb..9484e20d7 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -87,7 +87,7 @@ MRB_API mrb_int mrb_str_strlen(mrb_state*, struct RString*);
#define MRB_STR_FSHARED 2
#define MRB_STR_NOFREE 4
#define MRB_STR_POOL 8
-#define MRB_STR_NO_UTF 16
+#define MRB_STR_ASCII 16
#define MRB_STR_EMBED 32
#define MRB_STR_EMBED_LEN_MASK 0x7c0
#define MRB_STR_EMBED_LEN_SHIFT 6