diff options
author | David Corbett <corbett.dav@husky.neu.edu> | 2017-12-28 22:59:29 +0800 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-10-11 13:54:28 -0400 |
commit | a03f5f4dfbbf885db567c3909241a55eb5869fce (patch) | |
tree | 49213a353f9ed6dd2a4fada38b70e26a09151c5f | |
parent | 0b9d60e1a1c4b7867ac907bbd7c004191a14e697 (diff) |
Replace "ISO 639" with "BCP 47"
`hb_language_from_string` accepts not only ISO 639 but also BCP 47. Not
all ISO 639 codes are valid BCP 47 tags but the function does not accept
overlong language subtags anyway.
-rw-r--r-- | src/hb-buffer.cc | 2 | ||||
-rw-r--r-- | src/hb-common.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 2d75d726..1d3b602b 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -996,7 +996,7 @@ hb_buffer_get_script (hb_buffer_t *buffer) * are orthogonal to the scripts, and though they are related, they are * different concepts and should not be confused with each other. * - * Use hb_language_from_string() to convert from ISO 639 language codes to + * Use hb_language_from_string() to convert from BCP 47 language tags to * #hb_language_t. * * Since: 0.9.2 diff --git a/src/hb-common.cc b/src/hb-common.cc index eda41dd8..4940e7fb 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -325,14 +325,14 @@ retry: /** * hb_language_from_string: * @str: (array length=len) (element-type uint8_t): a string representing - * ISO 639 language code + * a BCP 47 language tag * @len: length of the @str, or -1 if it is %NULL-terminated. * - * Converts @str representing an ISO 639 language code to the corresponding + * Converts @str representing a BCP 47 language tag to the corresponding * #hb_language_t. * * Return value: (transfer none): - * The #hb_language_t corresponding to the ISO 639 language code. + * The #hb_language_t corresponding to the BCP 47 language tag. * * Since: 0.9.2 **/ |