@@ -665,6 +665,31 @@ void git__insertsort_r(
665665 git__free (swapel );
666666}
667667
668+ /*
669+ * git__utf8_iterate is taken from the utf8proc project,
670+ * http://www.public-software-group.org/utf8proc
671+ *
672+ * Copyright (c) 2009 Public Software Group e. V., Berlin, Germany
673+ *
674+ * Permission is hereby granted, free of charge, to any person obtaining a
675+ * copy of this software and associated documentation files (the ""Software""),
676+ * to deal in the Software without restriction, including without limitation
677+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
678+ * and/or sell copies of the Software, and to permit persons to whom the
679+ * Software is furnished to do so, subject to the following conditions:
680+ *
681+ * The above copyright notice and this permission notice shall be included in
682+ * all copies or substantial portions of the Software.
683+ *
684+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
685+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
686+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
687+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
688+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
689+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
690+ * DEALINGS IN THE SOFTWARE.
691+ */
692+
668693static const int8_t utf8proc_utf8class [256 ] = {
669694 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
670695 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
0 commit comments