Change string-match and string-search to require NFC inputs.
authorChris Hanson <org/chris-hanson/cph>
Sun, 23 Apr 2017 04:08:26 +0000 (21:08 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sun, 23 Apr 2017 04:08:26 +0000 (21:08 -0700)
commitc3d3964189b689ce4ca44b3ffa1dd1d5f8483fcb
tree99a81b07d002d5fdcf06b422e7ebef7e5599c5d5
parentc7bf829956b4572abd7d8e01eff0a89dfdc13a05
Change string-match and string-search to require NFC inputs.

This is because comparison requires that the strings be in the same
normalization form, and these procedures return indices into the strings.  We
can't normalize them after the call, because then the returned indices will
refer to strings that are potentially different from the arguments.

Since nearly all strings are in NFC by default this should not be a serious
drawback.

Additionally, the -ci versions of these procedures have been eliminated,
basically for the same reason.  If the caller needs that functionality they
should call string-foldcase themselves.

Note that this doesn't affect comparisons that don't return indices.
src/compiler/base/infnew.scm
src/runtime/runtime.pkg
src/runtime/ustring.scm