Skip to content

Commit

Permalink
PR review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j committed Jan 15, 2024
1 parent ece7e6a commit 6143950
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions modules/ROOT/pages/clauses/where.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ The `name` and `age` for `Peter` are are returned because his name contains "ete


[[match-string-is-normalized]]
=== Checking if a string is normalized `IS NORMALIZED`
=== Checking if a `STRING` `IS NORMALIZED`

The `IS NORMALIZED` operator is used to check whether the given `STRING` is in the `NFC` Unicode normalization form:

Expand All @@ -351,8 +351,8 @@ WHERE n.name IS NORMALIZED
RETURN n.name AS normalizedNames
----

The given strings contain only normalized Unicode characters, therefore all the names are matched and returned.
See here for more information on the xref:syntax/operators.adoc#match-string-is-normalized[normalization operator].
The given `STRING` values contain only normalized Unicode characters, therefore all the matched `name` properties are returned.
For more information, see the section about the xref:syntax/operators.adoc#match-string-is-normalized[normalization operator].

.Result
[role="queryresult",options="header,footer",cols="1*<m"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RETURN "string" IS NORMALIZED
----

| Introduction of an xref::syntax/operators.adoc#match-string-is-normalized[IS NORMALIZED] operator.
The operator can be used to check if a `STRING` is normalized according to the specified normalization form, which can be of type `NFC`, `NFD`, `NFKC` or `NFKD`.
The operator can be used to check if a `STRING` is normalized according to the specified normalization form, which can be of type `NFC`, `NFD`, `NFKC`, or `NFKD`.

|===

Expand Down
14 changes: 7 additions & 7 deletions modules/ROOT/pages/syntax/operators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ RETURN 'neo' + '4j' AS result


[[match-string-is-normalized]]
=== Checking if a string is normalized `IS NORMALIZED`
=== Checking if a `STRING` `IS NORMALIZED`

The `IS NORMALIZED` operator is used to check whether the given `STRING` is in the `NFC` Unicode normalization form:

Expand All @@ -575,8 +575,8 @@ The `IS NORMALIZED` operator is used to check whether the given `STRING` is in t
RETURN "the \u212B char" IS NORMALIZED AS normalized
----

The given string contains a non-normalized Unicode character: `\u212B`, therefore `false` is returned.
To normalize the string, it is possible to use the xref:functions/string.adoc#functions-normalize[normalize()] function.
The given `STRING` contains a non-normalized Unicode character: `\u212B`, therefore `false` is returned.
To normalize the `STRING`, it is possible to use the xref:functions/string.adoc#functions-normalize[normalize()] function.

.Result
[role="queryresult",options="header,footer",cols="1*<m"]
Expand All @@ -596,7 +596,7 @@ To normalize the string, it is possible to use the xref:functions/string.adoc#fu


[[match-string-is-not-normalized]]
=== Checking if a string is not normalized `IS NOT NORMALIZED`
=== Checking if a `STRING` `IS NOT NORMALIZED`

The `IS NOT NORMALIZED` operator is used to check whether the given `STRING` is not in the `NFC` Unicode normalization form:

Expand All @@ -606,8 +606,8 @@ The `IS NOT NORMALIZED` operator is used to check whether the given `STRING` is
RETURN "the \u212B char" IS NOT NORMALIZED AS notNormalized
----

The given string contains a non-normalized Unicode character: `\u212B`, therefore `true` is returned, as the string is not normalized.
To normalize the string, it is possible to use the xref:functions/string.adoc#functions-normalize[normalize()] function.
The given `STRING` contains a non-normalized Unicode character: `\u212B`, therefore `true` is returned, as the string is not normalized.
To normalize the `STRING`, it is possible to use the xref:functions/string.adoc#functions-normalize[normalize()] function.

.Result
[role="queryresult",options="header,footer",cols="1*<m"]
Expand Down Expand Up @@ -644,7 +644,7 @@ RETURN myString IS NFC NORMALIZED AS nfcNormalized,
myString IS NFD NORMALIZED AS nfdNormalized
----

The given string contains the Unicode character: `\u00E4`, which is considered normalized in `NFC` form, but not in `NFD` form.
The given `STRING` contains the Unicode character: `\u00E4`, which is considered normalized in `NFC` form, but not in `NFD` form.

.Result
[role="queryresult",options="header,footer",cols="2*<m"]
Expand Down

0 comments on commit 6143950

Please sign in to comment.