diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-19 11:15:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-19 11:15:49 -0300 |
commit | 39bb3cf2422603d854ee12529cc3419dc735802a (patch) | |
tree | 656fa40314dab1d612be82210abfed3c4b34d4de /manual | |
parent | 9b37a4695ebf50b37b5b4fb279ae948f23b5b6a0 (diff) | |
download | lua-39bb3cf2422603d854ee12529cc3419dc735802a.tar.gz lua-39bb3cf2422603d854ee12529cc3419dc735802a.tar.bz2 lua-39bb3cf2422603d854ee12529cc3419dc735802a.zip |
Name 'nonstrict' in the UTF-8 library changed to 'lax'
It is not a good idea to use negative words to describe boolean
values. (When we negate that boolean we create a double negative...)
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manual/manual.of b/manual/manual.of index b7ced443..fc2550e0 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -7315,7 +7315,7 @@ valid sequences (well formed and not overlong). | |||
7315 | By default, they only accept byte sequences | 7315 | By default, they only accept byte sequences |
7316 | that result in valid Unicode code points, | 7316 | that result in valid Unicode code points, |
7317 | rejecting values greater than @T{10FFFF} and surrogates. | 7317 | rejecting values greater than @T{10FFFF} and surrogates. |
7318 | A boolean argument @id{nonstrict}, when available, | 7318 | A boolean argument @id{lax}, when available, |
7319 | lifts these checks, | 7319 | lifts these checks, |
7320 | so that all values up to @T{0x7FFFFFFF} are accepted. | 7320 | so that all values up to @T{0x7FFFFFFF} are accepted. |
7321 | (Not well formed and overlong sequences are still rejected.) | 7321 | (Not well formed and overlong sequences are still rejected.) |
@@ -7338,7 +7338,7 @@ assuming that the subject is a valid UTF-8 string. | |||
7338 | 7338 | ||
7339 | } | 7339 | } |
7340 | 7340 | ||
7341 | @LibEntry{utf8.codes (s [, nonstrict])| | 7341 | @LibEntry{utf8.codes (s [, lax])| |
7342 | 7342 | ||
7343 | Returns values so that the construction | 7343 | Returns values so that the construction |
7344 | @verbatim{ | 7344 | @verbatim{ |
@@ -7351,7 +7351,7 @@ It raises an error if it meets any invalid byte sequence. | |||
7351 | 7351 | ||
7352 | } | 7352 | } |
7353 | 7353 | ||
7354 | @LibEntry{utf8.codepoint (s [, i [, j [, nonstrict]]])| | 7354 | @LibEntry{utf8.codepoint (s [, i [, j [, lax]]])| |
7355 | 7355 | ||
7356 | Returns the codepoints (as integers) from all characters in @id{s} | 7356 | Returns the codepoints (as integers) from all characters in @id{s} |
7357 | that start between byte position @id{i} and @id{j} (both included). | 7357 | that start between byte position @id{i} and @id{j} (both included). |
@@ -7360,7 +7360,7 @@ It raises an error if it meets any invalid byte sequence. | |||
7360 | 7360 | ||
7361 | } | 7361 | } |
7362 | 7362 | ||
7363 | @LibEntry{utf8.len (s [, i [, j [, nonstrict]]])| | 7363 | @LibEntry{utf8.len (s [, i [, j [, lax]]])| |
7364 | 7364 | ||
7365 | Returns the number of UTF-8 characters in string @id{s} | 7365 | Returns the number of UTF-8 characters in string @id{s} |
7366 | that start between positions @id{i} and @id{j} (both inclusive). | 7366 | that start between positions @id{i} and @id{j} (both inclusive). |