Expand description
Rust library crate to match Unicode open/close brackets
Source is generated by a Perl script (bin/matching.pl) to download and parse the following Unicode
database files.
- https://www.unicode.org/Public/UNIDATA/UnicodeData.txt
- https://www.unicode.org/Public/UNIDATA/BidiBrackets.txt
- https://www.unicode.org/Public/UNIDATA/BidiMirroring.txt
Original idea is from https://stackoverflow.com/a/13535289/21883239 and https://stackoverflow.com/questions/13535172/list-of-all-unicodes-open-close-brackets/13535289#comment53701946_13535289.
Constants§
- ALL
- Matching open/close brackets from
UnicodeData.txt,BidiBrackets.txt, andBidiMirroring.txt - BRACKETS
- Matching open/close brackets from
BidiBrackets.txt - BRACKETS_
MATCHING - Matching open/close brackets from
UnicodeData.txtandBidiBrackets.txt - BRACKETS_
MIRRORING - Matching open/close brackets from
BidiMirroring.txtandBidiBrackets.txt - MATCHING
- Matching open/close brackets from
UnicodeData.txt - MIRRORING
- Matching open/close brackets from
BidiMirroring.txt - MIRRORING_
MATCHING - Matching open/close brackets from
UnicodeData.txtandBidiMirroring.txt
Traits§
- Find
Matching - Trait to provide the
FindMatching::find_matchingmethod
Functions§
- close
- Generate a
BTreeMapwith the matching close bracket for each open bracket inUnicodeData.txt - close_
all - Generate a
BTreeMapwith the matching close bracket for each open bracket inUnicodeData.txt,BidiBrackets.txt, andBidiMirroring.txt - close_
brackets - Generate a
BTreeMapwith the matching close bracket for each open bracket inBidiBrackets.txt - close_
brackets_ matching - Generate a
BTreeMapwith the matching close bracket for each open bracket inUnicodeData.txtandBidiBrackets.txt - close_
brackets_ mirroring - Generate a
BTreeMapwith the matching close bracket for each open bracket inBidiMirroring.txtandBidiBrackets.txt - close_
mirroring - Generate a
BTreeMapwith the matching close bracket for each open bracket inBidiMirroring.txt - close_
mirroring_ matching - Generate a
BTreeMapwith the matching close bracket for each open bracket inUnicodeData.txtandBidiMirroring.txt - matching
- Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inUnicodeData.txt - matching_
all - Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inUnicodeData.txt,BidiBrackets.txt, andBidiMirroring.txt - matching_
brackets - Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inBidiBrackets.txt - matching_
brackets_ matching - Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inUnicodeData.txtandBidiBrackets.txt - matching_
brackets_ mirroring - Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inBidiMirroring.txtandBidiBrackets.txt - matching_
mirroring - Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inBidiMirroring.txt - matching_
mirroring_ matching - Generate a
BTreeMapwith an entry for each pair of opening and closing brackets inUnicodeData.txtandBidiMirroring.txt - open
- Generate a
BTreeMapwith the matching open bracket for each close bracket inUnicodeData.txt - open_
all - Generate a
BTreeMapwith the matching open bracket for each close bracket inUnicodeData.txt,BidiBrackets.txt, andBidiMirroring.txt - open_
brackets - Generate a
BTreeMapwith the matching open bracket for each close bracket inBidiBrackets.txt - open_
brackets_ matching - Generate a
BTreeMapwith the matching open bracket for each close bracket inUnicodeData.txtandBidiBrackets.txt - open_
brackets_ mirroring - Generate a
BTreeMapwith the matching open bracket for each close bracket inBidiMirroring.txtandBidiBrackets.txt - open_
mirroring - Generate a
BTreeMapwith the matching open bracket for each close bracket inBidiMirroring.txt - open_
mirroring_ matching - Generate a
BTreeMapwith the matching open bracket for each close bracket inUnicodeData.txtandBidiMirroring.txt