[MarkLogic Dev General] Next character according to a collation
Danny.Sokolsky at marklogic.com
Thu Apr 26 11:45:13 PDT 2012
Hmmm, I can't think of a way to exactly do this. But for any given character, you can use > or < in a Boolean statement to figure out if a character is before or after. For example:
xquery version "1.0-ml";
declare default collation "http://marklogic.com/collation/en/S1/AS/T00BB";
"z" > "Z"
If you are clever, you can probably do some sort of binary search to narrow down the next character in a few handfuls of comparisons.
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Tim Finney
Sent: Thursday, April 26, 2012 11:29 AM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] Next character according to a collation
I would like to know how to determine the next character according to a
particular collation. E.g., what comes immediately after "z" in
collation http://marklogic.com/collation/en/S1/AS/T00BB ?
General mailing list
General at developer.marklogic.com
More information about the General