# HG changeset patch # User Yaroslav Zhuravlev # Date 1545748057 -10800 # Node ID ae56e4613280b67451b15ba156b7a8acbc4021fb # Parent bff6da10f841225357fe1b0978f6e666a274964c Corrected language in njs. diff -r bff6da10f841 -r ae56e4613280 xml/en/docs/njs/changes.xml --- a/xml/en/docs/njs/changes.xml Tue Dec 25 18:01:54 2018 +0300 +++ b/xml/en/docs/njs/changes.xml Tue Dec 25 17:27:37 2018 +0300 @@ -9,7 +9,7 @@
@@ -87,14 +87,14 @@ Bugfix: -fixed building on paltforms without librt. +fixed building on platforms without librt. Bugfix: -miscellaneous additional bugs have been fixed. +miscellaneous bugs have been fixed. @@ -240,7 +240,7 @@ Bugfix: -miscellaneous additional bugs have been fixed. +miscellaneous bugs have been fixed. @@ -379,7 +379,7 @@ Bugfix: -miscellaneous additional bugs have been fixed. +miscellaneous bugs have been fixed. @@ -552,7 +552,7 @@ Bugfix: -miscellaneous additional bugs have been fixed. +miscellaneous bugs have been fixed. @@ -709,7 +709,7 @@ Bugfix: -miscellaneous additional bugs have been fixed. +miscellaneous bugs have been fixed. @@ -1013,7 +1013,7 @@ Bugfix: -miscellaneous additional bugs have been fixed. +miscellaneous bugs have been fixed. diff -r bff6da10f841 -r ae56e4613280 xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Tue Dec 25 18:01:54 2018 +0300 +++ b/xml/en/docs/njs/reference.xml Tue Dec 25 17:27:37 2018 +0300 @@ -9,7 +9,7 @@
+ rev="19">
@@ -489,19 +489,18 @@
-There are two types of strings: -a Unicode string (default) and -a byte string. +There are two types of strings in njs: a Unicode string (default) and +a byte string. -A Unicode string corresponds to an ECMAScript string +A Unicode string corresponds to an ECMAScript string which contains Unicode characters. -Byte strings contain a sequence of bytes. -They are used to serialize Unicode strings +Byte strings contain a sequence of bytes +and are used to serialize Unicode strings to external data and deserialize from external sources. For example, the toUTF8() method serializes a Unicode string to a byte string using UTF8 encoding: @@ -537,7 +536,8 @@ | string, encoding) (njs specific) Creates a byte string either from an array that contains octets, -or from an encoded string (0.2.3). +or from an encoded string +(0.2.3). The encoding can be hex, base64, and @@ -576,7 +576,7 @@ Returns a string representing one Unicode code unit at the specified index; empty string if index is out of range. -The index can be integer +The index can be an integer between 0 and 1-less-than the length of the string. If no index is provided, the default is 0, so the first character in the string is returned. @@ -585,7 +585,7 @@ String.prototype.CodePointAt(position) Returns a number representing the code point value of the character -at the given index; +at the given position; undefined if there is no element at position. >> 'ABCD'.codePointAt(3); @@ -652,7 +652,7 @@ fromIndex]) Returns the position of the first occurrence -of the searchString +of the searchString. The search is started at fromIndex. Returns -1 if the value is not found. The fromIndex is an integer, @@ -705,8 +705,8 @@ [, string]) Returns a string of a specified length -with the pad string applied -to the end of the specified string (0.2.3). +with the pad string applied to the end of the specified +string (0.2.3). >> '1234'.padEnd(8, 'abcd') '1234abcd' @@ -717,8 +717,8 @@ [, string]) Returns a string of a specified length -with the pad string applied -to the start of the specified string (0.2.3). +with the pad string applied to the start of the specified +string (0.2.3). >> '1234'.padStart(8, 'abcd') 'abcd1234' @@ -727,7 +727,7 @@ String.prototype.repeat(number) -Returns a string +Returns a string with the specified number of copies of the string. >> 'abc'.repeat(3) @@ -897,8 +897,8 @@ encodeURI(URI) -encodes a URI by replacing each instance of certain characters by -one, two, three, or four escape sequences +Encodes a URI by replacing each instance of certain characters +by one, two, three, or four escape sequences representing the UTF-8 encoding of the character >> encodeURI('012αβγδ') diff -r bff6da10f841 -r ae56e4613280 xml/index.xml --- a/xml/index.xml Tue Dec 25 18:01:54 2018 +0300 +++ b/xml/index.xml Tue Dec 25 17:27:37 2018 +0300 @@ -17,7 +17,7 @@ njs-0.2.7 -version has been released, featuring rest parameters syntax, +version has been released, featuring rest parameters syntax and more.