fork/m-overlay
git clone https://git.julia.blue/fork/m-overlay
da85c05
v2.1.1b
1-- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $ 2-- 3-- Provides UTF-8 aware string functions implemented in pure lua: 4-- * utf8len(s) 5-- * utf8sub(s, i, j) 6-- * utf8reverse(s) 7-- * utf8char(unicode) 8-- * utf8unicode(s, i, j) 9-- * utf8gensub(s, sub_len) 10-- * utf8find(str, regex, init, plain) 11-- * utf8match(str, regex, init) 12-- * utf8gmatch(str, regex, all) 13-- * utf8gsub(str, regex, repl, limit) 14-- 15-- If utf8data.lua (containing the lower<->upper case mappings) is loaded, these 16-- additional functions are available: 17-- * utf8upper(s) 18-- * utf8lower(s) 19-- 20-- All functions behave as their non UTF-8 aware counterparts with the exception 21-- that UTF-8 characters are used instead of bytes for all units. 22 23--[[ 24Copyright (c) 2006-2007, Kyle Smith 25All rights reserved. 26 27Contributors: 28Alimov Stepan 29 30Redistribution and use in source and binary forms, with or without 31modification, are permitted provided that the following conditions are met: 32 33* Redistributions of source code must retain the above copyright notice, 34this list of conditions and the following disclaimer. 35* Redistributions in binary form must reproduce the above copyright 36notice, this list of conditions and the following disclaimer in the 37documentation and/or other materials provided with the distribution. 38* Neither the name of the author nor the names of its contributors may be 39used to endorse or promote products derived from this software without 40specific prior written permission. 41 42THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 43AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 44IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 45DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 46FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 47DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 48SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 49CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 50OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 51OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 52--]] 53 54-- ABNF from RFC 3629 55-- 56-- UTF8-octets = *( UTF8-char ) 57-- UTF8-char = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4 58-- UTF8-1 = %x00-7F 59-- UTF8-2 = %xC2-DF UTF8-tail 60-- UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2( UTF8-tail ) / 61-- %xED %x80-9F UTF8-tail / %xEE-EF 2( UTF8-tail ) 62-- UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / %xF1-F3 3( UTF8-tail ) / 63-- %xF4 %x80-8F 2( UTF8-tail ) 64-- UTF8-tail = %x80-BF 65-- 66 67local utf8 =require ( "utf8" ) 68 69local utf8len =utf8 . len 70local byte =string . byte 71local char =string . char 72local dump =string . dump 73local find =string . find 74local format =string . format 75local len =string . len 76local rep =string . rep 77local sub =string . sub 78 79-- returns the number of bytes used by the UTF-8 character at byte i in s 80-- also doubles as a UTF-8 character validator 81local function utf8charbytes ( s , i ) 82-- argument defaults 83i =i or 1 84 85-- argument checking 86if type ( s ) ~= "string" then 87error ( "bad argument #1 to 'utf8.charbytes' (string expected, got " .. type ( s ) .. ")" ) 88end 89if type ( i ) ~= "number" then 90error ( "bad argument #2 to 'utf8.charbytes' (number expected, got " .. type ( i ) .. ")" ) 91end 92 93local c =byte ( s , i ) 94 95-- determine bytes needed for character, based on RFC 3629 96-- validate byte 1 97if c > 0 and c <= 127 then 98-- UTF8-1 99return 1 100 101elseif c >= 194 and c <= 223 then 102-- UTF8-2 103local c2 =byte ( s , i + 1 ) 104 105if not c2 then 106error ( "UTF-8 string terminated early" ) 107end 108 109-- validate byte 2 110if c2 < 128 or c2 > 191 then 111error ( "Invalid UTF-8 character" ) 112end 113 114return 2 115 116elseif c >= 224 and c <= 239 then 117-- UTF8-3 118local c2 =byte ( s , i + 1 ) 119local c3 =byte ( s , i + 2 ) 120 121if not c2 or not c3 then 122error ( "UTF-8 string terminated early" ) 123end 124 125-- validate byte 2 126if c == 224 and ( c2 < 160 or c2 > 191 ) then 127error ( "Invalid UTF-8 character" ) 128elseif c == 237 and ( c2 < 128 or c2 > 159 ) then 129error ( "Invalid UTF-8 character" ) 130elseif c2 < 128 or c2 > 191 then 131error ( "Invalid UTF-8 character" ) 132end 133 134-- validate byte 3 135if c3 < 128 or c3 > 191 then 136error ( "Invalid UTF-8 character" ) 137end 138 139return 3 140 141elseif c >= 240 and c <= 244 then 142-- UTF8-4 143local c2 =byte ( s , i + 1 ) 144local c3 =byte ( s , i + 2 ) 145local c4 =byte ( s , i + 3 ) 146 147if not c2 or not c3 or not c4 then 148error ( "UTF-8 string terminated early" ) 149end 150 151-- validate byte 2 152if c == 240 and ( c2 < 144 or c2 > 191 ) then 153error ( "Invalid UTF-8 character" ) 154elseif c == 244 and ( c2 < 128 or c2 > 143 ) then 155error ( "Invalid UTF-8 character" ) 156elseif c2 < 128 or c2 > 191 then 157error ( "Invalid UTF-8 character" ) 158end 159 160-- validate byte 3 161if c3 < 128 or c3 > 191 then 162error ( "Invalid UTF-8 character" ) 163end 164 165-- validate byte 4 166if c4 < 128 or c4 > 191 then 167error ( "Invalid UTF-8 character" ) 168end 169 170return 4 171 172else 173error ( "Invalid UTF-8 character" ) 174end 175end 176 177-- functions identically to string.sub except that i and j are UTF-8 characters 178-- instead of bytes 179local function utf8sub ( s , i , j ) 180-- argument defaults 181j =j or - 1 182 183local pos =1 184local bytes =len ( s ) 185local length =0 186 187-- only set l if i or j is negative 188local l =( i >= 0 and j >= 0 ) or utf8len ( s ) 189local startChar =( i >= 0 ) and i or l + i + 1 190local endChar =( j >= 0 ) and j or l + j + 1 191 192-- can't have start before end! 193if startChar > endChar then 194return "" 195end 196 197-- byte offsets to pass to string.sub 198local startByte , endByte =1 , bytes 199 200while pos <= bytes do 201length =length + 1 202 203if length == startChar then 204startByte =pos 205end 206 207pos =pos + utf8charbytes ( s , pos ) 208 209if length == endChar then 210endByte =pos - 1 211break 212end 213end 214 215if startChar > length then startByte =bytes + 1 end 216if endChar < 1 then endByte =0 end 217 218return sub ( s , startByte , endByte ) 219end 220 221-- replace UTF-8 characters based on a mapping table 222local function utf8replace ( s , mapping ) 223-- argument checking 224if type ( s ) ~= "string" then 225error ( "bad argument #1 to 'utf8.replace' (string expected, got " .. type ( s ) .. ")" ) 226end 227if type ( mapping ) ~= "table" then 228error ( "bad argument #2 to 'utf8.replace' (table expected, got " .. type ( mapping ) .. ")" ) 229end 230 231local pos =1 232local bytes =len ( s ) 233local charbytes 234local newstr ="" 235 236while pos <= bytes do 237charbytes =utf8charbytes ( s , pos ) 238local c =sub ( s , pos , pos + charbytes - 1 ) 239 240newstr =newstr .. ( mapping [ c ] or c ) 241 242pos =pos + charbytes 243end 244 245return newstr 246end 247 248local utf8_lc_uc ={ 249[ "a" ] ="A" , 250[ "b" ] ="B" , 251[ "c" ] ="C" , 252[ "d" ] ="D" , 253[ "e" ] ="E" , 254[ "f" ] ="F" , 255[ "g" ] ="G" , 256[ "h" ] ="H" , 257[ "i" ] ="I" , 258[ "j" ] ="J" , 259[ "k" ] ="K" , 260[ "l" ] ="L" , 261[ "m" ] ="M" , 262[ "n" ] ="N" , 263[ "o" ] ="O" , 264[ "p" ] ="P" , 265[ "q" ] ="Q" , 266[ "r" ] ="R" , 267[ "s" ] ="S" , 268[ "t" ] ="T" , 269[ "u" ] ="U" , 270[ "v" ] ="V" , 271[ "w" ] ="W" , 272[ "x" ] ="X" , 273[ "y" ] ="Y" , 274[ "z" ] ="Z" , 275[ "µ" ] ="Μ" , 276[ "à" ] ="À" , 277[ "á" ] ="Á" , 278[ "â" ] ="Â" , 279[ "ã" ] ="Ã" , 280[ "ä" ] ="Ä" , 281[ "å" ] ="Å" , 282[ "æ" ] ="Æ" , 283[ "ç" ] ="Ç" , 284[ "è" ] ="È" , 285[ "é" ] ="É" , 286[ "ê" ] ="Ê" , 287[ "ë" ] ="Ë" , 288[ "ì" ] ="Ì" , 289[ "í" ] ="Í" , 290[ "î" ] ="Î" , 291[ "ï" ] ="Ï" , 292[ "ð" ] ="Ð" , 293[ "ñ" ] ="Ñ" , 294[ "ò" ] ="Ò" , 295[ "ó" ] ="Ó" , 296[ "ô" ] ="Ô" , 297[ "õ" ] ="Õ" , 298[ "ö" ] ="Ö" , 299[ "ø" ] ="Ø" , 300[ "ù" ] ="Ù" , 301[ "ú" ] ="Ú" , 302[ "û" ] ="Û" , 303[ "ü" ] ="Ü" , 304[ "ý" ] ="Ý" , 305[ "þ" ] ="Þ" , 306[ "ÿ" ] ="Ÿ" , 307[ "ā" ] ="Ā" , 308[ "ă" ] ="Ă" , 309[ "ą" ] ="Ą" , 310[ "ć" ] ="Ć" , 311[ "ĉ" ] ="Ĉ" , 312[ "ċ" ] ="Ċ" , 313[ "č" ] ="Č" , 314[ "ď" ] ="Ď" , 315[ "đ" ] ="Đ" , 316[ "ē" ] ="Ē" , 317[ "ĕ" ] ="Ĕ" , 318[ "ė" ] ="Ė" , 319[ "ę" ] ="Ę" , 320[ "ě" ] ="Ě" , 321[ "ĝ" ] ="Ĝ" , 322[ "ğ" ] ="Ğ" , 323[ "ġ" ] ="Ġ" , 324[ "ģ" ] ="Ģ" , 325[ "ĥ" ] ="Ĥ" , 326[ "ħ" ] ="Ħ" , 327[ "ĩ" ] ="Ĩ" , 328[ "ī" ] ="Ī" , 329[ "ĭ" ] ="Ĭ" , 330[ "į" ] ="Į" , 331[ "ı" ] ="I" , 332[ "ij" ] ="IJ" , 333[ "ĵ" ] ="Ĵ" , 334[ "ķ" ] ="Ķ" , 335[ "ĺ" ] ="Ĺ" , 336[ "ļ" ] ="Ļ" , 337[ "ľ" ] ="Ľ" , 338[ "ŀ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] ="Ι" , 494[ "κ" ] ="Κ" , 495[ "λ" ] ="Λ" , 496[ "μ" ] ="Μ" , 497[ "ν" ] ="Ν" , 498[ "ξ" ] ="Ξ" , 499[ "ο" ] ="Ο" , 500[ "π" ] ="Π" , 501[ "ρ" ] ="Ρ" , 502[ "ς" ] ="Σ" , 503[ "σ" ] ="Σ" , 504[ "τ" ] ="Τ" , 505[ "υ" ] ="Υ" , 506[ "φ" ] ="Φ" , 507[ "χ" ] ="Χ" , 508[ "ψ" ] ="Ψ" , 509[ "ω" ] ="Ω" , 510[ "ϊ" ] ="Ϊ" , 511[ "ϋ" ] ="Ϋ" , 512[ "ό" ] ="Ό" , 513[ "ύ" ] ="Ύ" , 514[ "ώ" ] ="Ώ" , 515[ "ϐ" ] ="Β" , 516[ "ϑ" ] ="Θ" , 517[ "ϕ" ] ="Φ" , 518[ "ϖ" ] ="Π" , 519[ "ϙ" ] ="Ϙ" , 520[ "ϛ" ] ="Ϛ" , 521[ "ϝ" ] ="Ϝ" , 522[ "ϟ" ] ="Ϟ" , 523[ "ϡ" ] ="Ϡ" , 524[ "ϣ" ] ="Ϣ" , 525[ "ϥ" ] ="Ϥ" , 526[ "ϧ" ] ="Ϧ" , 527[ "ϩ" ] ="Ϩ" , 528[ "ϫ" ] ="Ϫ" , 529[ "ϭ" ] ="Ϭ" , 530[ "ϯ" ] ="Ϯ" , 531[ "ϰ" ] ="Κ" , 532[ "ϱ" ] ="Ρ" , 533[ "ϲ" ] ="Ϲ" , 534[ "ϵ" ] ="Ε" , 535[ "ϸ" ] ="Ϸ" , 536[ "ϻ" ] ="Ϻ" , 537[ "а" ] ="А" , 538[ "б" ] ="Б" , 539[ "в" ] ="В" , 540[ "г" ] ="Г" , 541[ "д" ] ="Д" , 542[ "е" ] ="Е" , 543[ "ж" ] ="Ж" , 544[ "з" ] ="З" , 545[ "и" ] ="И" , 546[ "й" ] ="Й" , 547[ "к" ] ="К" , 548[ "л" ] ="Л" , 549[ "м" ] ="М" , 550[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] ="X" , 1138[ "y" ] ="Y" , 1139[ "z" ] ="Z" , 1140[ "𐐨" ] ="𐐀" , 1141[ "𐐩" ] ="𐐁" , 1142[ "𐐪" ] ="𐐂" , 1143[ "𐐫" ] ="𐐃" , 1144[ "𐐬" ] ="𐐄" , 1145[ "𐐭" ] ="𐐅" , 1146[ "𐐮" ] ="𐐆" , 1147[ "𐐯" ] ="𐐇" , 1148[ "𐐰" ] ="𐐈" , 1149[ "𐐱" ] ="𐐉" , 1150[ "𐐲" ] ="𐐊" , 1151[ "𐐳" ] ="𐐋" , 1152[ "𐐴" ] ="𐐌" , 1153[ "𐐵" ] ="𐐍" , 1154[ "𐐶" ] ="𐐎" , 1155[ "𐐷" ] ="𐐏" , 1156[ "𐐸" ] ="𐐐" , 1157[ "𐐹" ] ="𐐑" , 1158[ "𐐺" ] ="𐐒" , 1159[ "𐐻" ] ="𐐓" , 1160[ "𐐼" ] ="𐐔" , 1161[ "𐐽" ] ="𐐕" , 1162[ "𐐾" ] ="𐐖" , 1163[ "𐐿" ] ="𐐗" , 1164[ "𐑀" ] ="𐐘" , 1165[ "𐑁" ] ="𐐙" , 1166[ "𐑂" ] ="𐐚" , 1167[ "𐑃" ] ="𐐛" , 1168[ "𐑄" ] ="𐐜" , 1169[ "𐑅" ] ="𐐝" , 1170[ "𐑆" ] ="𐐞" , 1171[ "𐑇" ] ="𐐟" , 1172[ "𐑈" ] ="𐐠" , 1173[ "𐑉" ] ="𐐡" , 1174[ "𐑊" ] ="𐐢" , 1175[ "𐑋" ] ="𐐣" , 1176[ "𐑌" ] ="𐐤" , 1177[ "𐑍" ] ="𐐥" , 1178[ "𐑎" ] ="𐐦" , 1179[ "𐑏" ] ="𐐧" , 1180} 1181 1182local utf8_uc_lc ={ 1183[ "A" ] ="a" , 1184[ "B" ] ="b" , 1185[ "C" ] ="c" , 1186[ "D" ] ="d" , 1187[ "E" ] ="e" , 1188[ "F" ] ="f" , 1189[ "G" ] ="g" , 1190[ "H" ] ="h" , 1191[ "I" ] ="i" , 1192[ "J" ] ="j" , 1193[ "K" ] ="k" , 1194[ "L" ] ="l" , 1195[ "M" ] ="m" , 1196[ "N" ] ="n" , 1197[ "O" ] ="o" , 1198[ "P" ] ="p" , 1199[ "Q" ] ="q" , 1200[ "R" ] ="r" , 1201[ "S" ] ="s" , 1202[ "T" ] ="t" , 1203[ "U" ] ="u" , 1204[ "V" ] ="v" , 1205[ "W" ] ="w" , 1206[ "X" ] ="x" , 1207[ "Y" ] ="y" , 1208[ "Z" ] ="z" , 1209[ "À" ] ="à" , 1210[ "Á" ] ="á" , 1211[ "Â" ] ="â" , 1212[ "Ã" ] ="ã" , 1213[ "Ä" ] ="ä" , 1214[ "Å" ] ="å" , 1215[ "Æ" ] ="æ" , 1216[ "Ç" ] ="ç" , 1217[ "È" ] ="è" , 1218[ "É" ] ="é" , 1219[ "Ê" ] ="ê" , 1220[ "Ë" ] ="ë" , 1221[ "Ì" ] ="ì" , 1222[ "Í" ] ="í" , 1223[ "Î" ] ="î" , 1224[ "Ï" ] ="ï" , 1225[ "Ð" ] ="ð" , 1226[ "Ñ" ] ="ñ" , 1227[ "Ò" ] ="ò" , 1228[ "Ó" ] ="ó" , 1229[ "Ô" ] ="ô" , 1230[ "Õ" ] ="õ" , 1231[ "Ö" ] ="ö" , 1232[ "Ø" ] ="ø" , 1233[ "Ù" ] ="ù" , 1234[ "Ú" ] ="ú" , 1235[ "Û" ] ="û" , 1236[ "Ü" ] ="ü" , 1237[ "Ý" ] ="ý" , 1238[ "Þ" ] ="þ" , 1239[ "Ā" ] ="ā" , 1240[ "Ă" ] ="ă" , 1241[ "Ą" ] ="ą" , 1242[ "Ć" ] ="ć" , 1243[ "Ĉ" ] ="ĉ" , 1244[ "Ċ" ] ="ċ" , 1245[ "Č" ] ="č" , 1246[ "Ď" ] ="ď" , 1247[ "Đ" ] ="đ" , 1248[ "Ē" ] ="ē" , 1249[ "Ĕ" ] ="ĕ" , 1250[ "Ė" ] ="ė" , 1251[ "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] ="ϩ" , 1451[ "Ϫ" ] ="ϫ" , 1452[ "Ϭ" ] ="ϭ" , 1453[ "Ϯ" ] ="ϯ" , 1454[ "ϴ" ] ="θ" , 1455[ "Ϸ" ] ="ϸ" , 1456[ "Ϲ" ] ="ϲ" , 1457[ "Ϻ" ] ="ϻ" , 1458[ "Ͻ" ] ="ͻ" , 1459[ "Ͼ" ] ="ͼ" , 1460[ "Ͽ" ] ="ͽ" , 1461[ "Ѐ" ] ="ѐ" , 1462[ "Ё" ] ="ё" , 1463[ "Ђ" ] ="ђ" , 1464[ "Ѓ" ] ="ѓ" , 1465[ "Є" ] ="є" , 1466[ "Ѕ" ] ="ѕ" , 1467[ "І" ] ="і" , 1468[ "Ї" ] ="ї" , 1469[ "Ј" ] ="ј" , 1470[ "Љ" ] ="љ" , 1471[ "Њ" ] ="њ" , 1472[ "Ћ" ] ="ћ" , 1473[ "Ќ" ] ="ќ" , 1474[ "Ѝ" ] ="ѝ" , 1475[ "Ў" ] ="ў" , 1476[ "Џ" ] ="џ" , 1477[ "А" ] ="а" , 1478[ "Б" ] ="б" , 1479[ "В" ] ="в" , 1480[ "Г" ] ="г" , 1481[ "Д" ] ="д" , 1482[ "Е" ] ="е" , 1483[ "Ж" ] ="ж" , 1484[ "З" ] ="з" , 1485[ "И" ] ="и" , 1486[ "Й" ] ="й" , 1487[ "К" ] ="к" , 1488[ "Л" ] ="л" , 1489[ "М" ] ="м" , 1490[ "Н" ] ="н" , 1491[ "О" ] ="о" , 1492[ "П" ] ="п" , 1493[ "Р" ] ="р" , 1494[ "С" ] ="с" , 1495[ "Т" ] ="т" , 1496[ "У" ] ="у" , 1497[ "Ф" ] ="ф" , 1498[ "Х" ] ="х" , 1499[ "Ц" ] ="ц" , 1500[ "Ч" ] ="ч" , 1501[ "Ш" ] ="ш" , 1502[ "Щ" ] ="щ" , 1503[ "Ъ" ] ="ъ" , 1504[ "Ы" ] ="ы" , 1505[ "Ь" ] ="ь" , 1506[ "Э" ] ="э" , 1507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" ] ="ẓ" , 1745[ "Ẕ" ] ="ẕ" , 1746[ "Ạ" ] ="ạ" , 1747[ "Ả" ] ="ả" , 1748[ "Ấ" ] ="ấ" , 1749[ "Ầ" ] ="ầ" , 1750[ "Ẩ" ] ="ẩ" , 1751[ "Ẫ" ] ="ẫ" , 1752[ "Ậ" ] ="ậ" , 1753[ "Ắ" ] ="ắ" , 1754[ "Ằ" ] ="ằ" , 1755[ "Ẳ" ] ="ẳ" , 1756[ "Ẵ" ] ="ẵ" , 1757[ "Ặ" ] ="ặ" , 1758[ "Ẹ" ] ="ẹ" , 1759[ "Ẻ" ] ="ẻ" , 1760[ "Ẽ" ] ="ẽ" , 1761[ "Ế" ] ="ế" , 1762[ "Ề" ] ="ề" , 1763[ "Ể" ] ="ể" , 1764[ "Ễ" ] ="ễ" , 1765[ "Ệ" ] ="ệ" , 1766[ "Ỉ" ] ="ỉ" , 1767[ "Ị" ] ="ị" , 1768[ "Ọ" ] ="ọ" , 1769[ "Ỏ" ] ="ỏ" , 1770[ "Ố" ] ="ố" , 1771[ "Ồ" ] ="ồ" , 1772[ "Ổ" ] ="ổ" , 1773[ "Ỗ" ] ="ỗ" , 1774[ "Ộ" ] ="ộ" , 1775[ "Ớ" ] ="ớ" , 1776[ "Ờ" ] ="ờ" , 1777[ "Ở" ] ="ở" , 1778[ "Ỡ" ] ="ỡ" , 1779[ "Ợ" ] ="ợ" , 1780[ "Ụ" ] ="ụ" , 1781[ "Ủ" ] ="ủ" , 1782[ "Ứ" ] ="ứ" , 1783[ "Ừ" ] ="ừ" , 1784[ "Ử" ] ="ử" , 1785[ "Ữ" ] ="ữ" , 1786[ "Ự" ] ="ự" , 1787[ "Ỳ" ] ="ỳ" , 1788[ "Ỵ" ] ="ỵ" , 1789[ "Ỷ" ] ="ỷ" , 1790[ "Ỹ" ] ="ỹ" , 1791[ "Ἀ" ] ="ἀ" , 1792[ "Ἁ" ] ="ἁ" , 1793[ "Ἂ" ] ="ἂ" , 1794[ "Ἃ" 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] ="𐐬" , 2070[ "𐐅" ] ="𐐭" , 2071[ "𐐆" ] ="𐐮" , 2072[ "𐐇" ] ="𐐯" , 2073[ "𐐈" ] ="𐐰" , 2074[ "𐐉" ] ="𐐱" , 2075[ "𐐊" ] ="𐐲" , 2076[ "𐐋" ] ="𐐳" , 2077[ "𐐌" ] ="𐐴" , 2078[ "𐐍" ] ="𐐵" , 2079[ "𐐎" ] ="𐐶" , 2080[ "𐐏" ] ="𐐷" , 2081[ "𐐐" ] ="𐐸" , 2082[ "𐐑" ] ="𐐹" , 2083[ "𐐒" ] ="𐐺" , 2084[ "𐐓" ] ="𐐻" , 2085[ "𐐔" ] ="𐐼" , 2086[ "𐐕" ] ="𐐽" , 2087[ "𐐖" ] ="𐐾" , 2088[ "𐐗" ] ="𐐿" , 2089[ "𐐘" ] ="𐑀" , 2090[ "𐐙" ] ="𐑁" , 2091[ "𐐚" ] ="𐑂" , 2092[ "𐐛" ] ="𐑃" , 2093[ "𐐜" ] ="𐑄" , 2094[ "𐐝" ] ="𐑅" , 2095[ "𐐞" ] ="𐑆" , 2096[ "𐐟" ] ="𐑇" , 2097[ "𐐠" ] ="𐑈" , 2098[ "𐐡" ] ="𐑉" , 2099[ "𐐢" ] ="𐑊" , 2100[ "𐐣" ] ="𐑋" , 2101[ "𐐤" ] ="𐑌" , 2102[ "𐐥" ] ="𐑍" , 2103[ "𐐦" ] ="𐑎" , 2104[ "𐐧" ] ="𐑏" , 2105} 2106 2107-- identical to string.upper except it knows about unicode simple case conversions 2108local function utf8upper ( s ) 2109return utf8replace ( s , utf8_lc_uc ) 2110end 2111 2112-- identical to string.lower except it knows about unicode simple case conversions 2113local function utf8lower ( s ) 2114return utf8replace ( s , utf8_uc_lc ) 2115end 2116 2117-- identical to string.reverse except that it supports UTF-8 2118local function utf8reverse ( s ) 2119-- argument checking 2120if type ( s ) ~= "string" then 2121error ( "bad argument #1 to 'utf8.reverse' (string expected, got " .. type ( s ) .. ")" ) 2122end 2123 2124local bytes =len ( s ) 2125local pos =bytes 2126local charbytes 2127local newstr ="" 2128 2129while pos > 0 do 2130local c =byte ( s , pos ) 2131while c >= 128 and c <= 191 do 2132pos =pos - 1 2133c =byte ( s , pos ) 2134end 2135 2136charbytes =utf8charbytes ( s , pos ) 2137 2138newstr =newstr .. sub ( s , pos , pos + charbytes - 1 ) 2139 2140pos =pos - 1 2141end 2142 2143return newstr 2144end 2145 2146-- http://en.wikipedia.org/wiki/Utf8 2147-- http://developer.coronalabs.com/code/utf-8-conversion-utility 2148local function utf8char ( unicode ) 2149if unicode <= 0x7F then return char ( unicode ) end 2150 2151if ( unicode <= 0x7FF ) then 2152local Byte0 =0xC0 + math . floor ( unicode / 0x40 ); 2153local Byte1 =0x80 + ( unicode % 0x40 ); 2154return char ( Byte0 , Byte1 ); 2155end ; 2156 2157if ( unicode <= 0xFFFF ) then 2158local Byte0 =0xE0 + math . floor ( unicode / 0x1000 ); 2159local Byte1 =0x80 + ( math . floor ( unicode / 0x40 ) % 0x40 ); 2160local Byte2 =0x80 + ( unicode % 0x40 ); 2161return char ( Byte0 , Byte1 , Byte2 ); 2162end ; 2163 2164if ( unicode <= 0x10FFFF ) then 2165local code =unicode 2166local Byte3 =0x80 + ( code % 0x40 ); 2167code =math . floor ( code / 0x40 ) 2168local Byte2 =0x80 + ( code % 0x40 ); 2169code =math . floor ( code / 0x40 ) 2170local Byte1 =0x80 + ( code % 0x40 ); 2171code =math . floor ( code / 0x40 ) 2172local Byte0 =0xF0 + code ; 2173 2174return char ( Byte0 , Byte1 , Byte2 , Byte3 ); 2175end ; 2176 2177error 'Unicode cannot be greater than U+10FFFF!' 2178end 2179 2180local shift_6 =2 ^ 6 2181local shift_12 =2 ^ 12 2182local shift_18 =2 ^ 18 2183 2184local utf8unicode 2185utf8unicode =function ( str , i , j , byte_pos ) 2186i =i or 1 2187j =j or i 2188 2189if i > j then return end 2190 2191local ch , bytes 2192 2193if byte_pos then 2194bytes =utf8charbytes ( str , byte_pos ) 2195ch =sub ( str , byte_pos , byte_pos - 1 + bytes ) 2196else 2197ch , byte_pos =utf8sub ( str , i , i ), 0 2198bytes =# ch 2199end 2200 2201local unicode 2202 2203if bytes == 1 then unicode =byte ( ch ) end 2204if bytes == 2 then 2205local byte0 , byte1 =byte ( ch , 1 , 2 ) 2206local code0 , code1 =byte0 - 0xC0 , byte1 - 0x80 2207unicode =code0 * shift_6 + code1 2208end 2209if bytes == 3 then 2210local byte0 , byte1 , byte2 =byte ( ch , 1 , 3 ) 2211local code0 , code1 , code2 =byte0 - 0xE0 , byte1 - 0x80 , byte2 - 0x80 2212unicode =code0 * shift_12 + code1 * shift_6 + code2 2213end 2214if bytes == 4 then 2215local byte0 , byte1 , byte2 , byte3 =byte ( ch , 1 , 4 ) 2216local code0 , code1 , code2 , code3 =byte0 - 0xF0 , byte1 - 0x80 , byte2 - 0x80 , byte3 - 0x80 2217unicode =code0 * shift_18 + code1 * shift_12 + code2 * shift_6 + code3 2218end 2219 2220return unicode , utf8unicode ( str , i + 1 , j , byte_pos + bytes ) 2221end 2222 2223-- Returns an iterator which returns the next substring and its byte interval 2224local function utf8gensub ( str , sub_len ) 2225sub_len =sub_len or 1 2226local byte_pos =1 2227local length =# str 2228return function ( skip ) 2229if skip then byte_pos =byte_pos + skip end 2230local char_count =0 2231local start =byte_pos 2232repeat 2233if byte_pos > length then return end 2234char_count =char_count + 1 2235local bytes =utf8charbytes ( str , byte_pos ) 2236byte_pos =byte_pos + bytes 2237 2238until char_count == sub_len 2239 2240local last =byte_pos - 1 2241local slice =sub ( str , start , last ) 2242return slice , start , last 2243end 2244end 2245 2246local function binsearch ( sortedTable , item , comp ) 2247local head , tail =1 , # sortedTable 2248local mid =math . floor (( head + tail ) / 2 ) 2249if not comp then 2250while ( tail - head ) > 1 do 2251if sortedTable [ tonumber ( mid )] > item then 2252tail =mid 2253else 2254head =mid 2255end 2256mid =math . floor (( head + tail ) / 2 ) 2257end 2258end 2259if sortedTable [ tonumber ( head )] == item then 2260return true , tonumber ( head ) 2261elseif sortedTable [ tonumber ( tail )] == item then 2262return true , tonumber ( tail ) 2263else 2264return false 2265end 2266end 2267local function classMatchGenerator ( class , plain ) 2268local codes ={} 2269local ranges ={} 2270local ignore =false 2271local range =false 2272local firstletter =true 2273local unmatch =false 2274 2275local it =utf8gensub ( class ) 2276 2277local skip 2278for c , _ , be in it do 2279skip =be 2280if not ignore and not plain then 2281if c == "%" then 2282ignore =true 2283elseif c == "-" then 2284table . insert ( codes , utf8unicode ( c )) 2285range =true 2286elseif c == "^" then 2287if not firstletter then 2288error ( '!!!' ) 2289else 2290unmatch =true 2291end 2292elseif c == ']' then 2293break 2294else 2295if not range then 2296table . insert ( codes , utf8unicode ( c )) 2297else 2298table . remove ( codes ) -- removing '-' 2299table . insert ( ranges , { table . remove ( codes ), utf8unicode ( c ) } ) 2300range =false 2301end 2302end 2303elseif ignore and not plain then 2304if c == 'a' then -- %a: represents all letters. (ONLY ASCII) 2305table . insert ( ranges , { 65 , 90 } ) -- A - Z 2306table . insert ( ranges , { 97 , 122 } ) -- a - z 2307elseif c == 'c' then -- %c: represents all control characters. 2308table . insert ( ranges , { 0 , 31 } ) 2309table . insert ( codes , 127 ) 2310elseif c == 'd' then -- %d: represents all digits. 2311table . insert ( ranges , { 48 , 57 } ) -- 0 - 9 2312elseif c == 'g' then -- %g: represents all printable characters except space. 2313table . insert ( ranges , { 1 , 8 } ) 2314table . insert ( ranges , { 14 , 31 } ) 2315table . insert ( ranges , { 33 , 132 } ) 2316table . insert ( ranges , { 134 , 159 } ) 2317table . insert ( ranges , { 161 , 5759 } ) 2318table . insert ( ranges , { 5761 , 8191 } ) 2319table . insert ( ranges , { 8203 , 8231 } ) 2320table . insert ( ranges , { 8234 , 8238 } ) 2321table . insert ( ranges , { 8240 , 8286 } ) 2322table . insert ( ranges , { 8288 , 12287 } ) 2323elseif c == 'l' then -- %l: represents all lowercase letters. (ONLY ASCII) 2324table . insert ( ranges , { 97 , 122 } ) -- a - z 2325elseif c == 'p' then -- %p: represents all punctuation characters. (ONLY ASCII) 2326table . insert ( ranges , { 33 , 47 } ) 2327table . insert ( ranges , { 58 , 64 } ) 2328table . insert ( ranges , { 91 , 96 } ) 2329table . insert ( ranges , { 123 , 126 } ) 2330elseif c == 's' then -- %s: represents all space characters. 2331table . insert ( ranges , { 9 , 13 } ) 2332table . insert ( codes , 32 ) 2333table . insert ( codes , 133 ) 2334table . insert ( codes , 160 ) 2335table . insert ( codes , 5760 ) 2336table . insert ( ranges , { 8192 , 8202 } ) 2337table . insert ( codes , 8232 ) 2338table . insert ( codes , 8233 ) 2339table . insert ( codes , 8239 ) 2340table . insert ( codes , 8287 ) 2341table . insert ( codes , 12288 ) 2342elseif c == 'u' then -- %u: represents all uppercase letters. (ONLY ASCII) 2343table . insert ( ranges , { 65 , 90 } ) -- A - Z 2344elseif c == 'w' then -- %w: represents all alphanumeric characters. (ONLY ASCII) 2345table . insert ( ranges , { 48 , 57 } ) -- 0 - 9 2346table . insert ( ranges , { 65 , 90 } ) -- A - Z 2347table . insert ( ranges , { 97 , 122 } ) -- a - z 2348elseif c == 'x' then -- %x: represents all hexadecimal digits. 2349table . insert ( ranges , { 48 , 57 } ) -- 0 - 9 2350table . insert ( ranges , { 65 , 70 } ) -- A - F 2351table . insert ( ranges , { 97 , 102 } ) -- a - f 2352else 2353if not range then 2354table . insert ( codes , utf8unicode ( c )) 2355else 2356table . remove ( codes ) -- removing '-' 2357table . insert ( ranges , { table . remove ( codes ), utf8unicode ( c ) } ) 2358range =false 2359end 2360end 2361ignore =false 2362else 2363if not range then 2364table . insert ( codes , utf8unicode ( c )) 2365else 2366table . remove ( codes ) -- removing '-' 2367table . insert ( ranges , { table . remove ( codes ), utf8unicode ( c ) } ) 2368range =false 2369end 2370ignore =false 2371end 2372 2373firstletter =false 2374end 2375 2376table . sort ( codes ) 2377 2378local function inRanges ( charCode ) 2379for _ , r in ipairs ( ranges ) do 2380if r [ 1 ] <= charCode and charCode <= r [ 2 ] then 2381return true 2382end 2383end 2384return false 2385end 2386if not unmatch then 2387return function ( charCode ) 2388return binsearch ( codes , charCode ) or inRanges ( charCode ) 2389end , skip 2390else 2391return function ( charCode ) 2392return charCode ~= - 1 and not ( binsearch ( codes , charCode ) or inRanges ( charCode )) 2393end , skip 2394end 2395end 2396 2397--[[ 2398-- utf8sub with extra argument, and extra result value 2399local function utf8subWithBytes (s, i, j, sb) 2400-- argument defaults 2401j = j or -1 2402 2403local pos = sb or 1 2404local bytes = len(s) 2405local length = 0 2406 2407-- only set l if i or j is negative 2408local l = (i >= 0 and j >= 0) or utf8len(s) 2409local startChar = (i >= 0) and i or l + i + 1 2410local endChar = (j >= 0) and j or l + j + 1 2411 2412-- can't have start before end! 2413if startChar > endChar then 2414return "" 2415end 2416 2417-- byte offsets to pass to string.sub 2418local startByte,endByte = 1,bytes 2419 2420while pos <= bytes do 2421length = length + 1 2422 2423if length == startChar then 2424startByte = pos 2425end 2426 2427pos = pos + utf8charbytes(s, pos) 2428 2429if length == endChar then 2430endByte = pos - 1 2431break 2432end 2433end 2434 2435if startChar > length then startByte = bytes+1 end 2436if endChar < 1 then endByte = 0 end 2437 2438return sub(s, startByte, endByte), endByte + 1 2439end 2440]] 2441 2442local cache =setmetatable ( {} , { 2443__mode ='kv' 2444} ) 2445local cachePlain =setmetatable ( {} , { 2446__mode ='kv' 2447} ) 2448local function matcherGenerator ( regex , plain ) 2449local matcher ={ 2450functions ={} , 2451captures ={} 2452} 2453if not plain then 2454cache [ regex ] =matcher 2455else 2456cachePlain [ regex ] =matcher 2457end 2458local function simple ( func ) 2459return function ( cC ) 2460if func ( cC ) then 2461matcher : nextFunc () 2462matcher : nextStr () 2463else 2464matcher : reset () 2465end 2466end 2467end 2468local function star ( func ) 2469return function ( cC ) 2470if func ( cC ) then 2471matcher : fullResetOnNextFunc () 2472matcher : nextStr () 2473else 2474matcher : nextFunc () 2475end 2476end 2477end 2478local function minus ( func ) 2479return function ( cC ) 2480if func ( cC ) then 2481matcher : fullResetOnNextStr () 2482end 2483matcher : nextFunc () 2484end 2485end 2486local function question ( func ) 2487return function ( cC ) 2488if func ( cC ) then 2489matcher : fullResetOnNextFunc () 2490matcher : nextStr () 2491end 2492matcher : nextFunc () 2493end 2494end 2495 2496local function capture ( id ) 2497return function ( _ ) 2498local l =matcher . captures [ id ][ 2 ] - matcher . captures [ id ][ 1 ] 2499local captured =utf8sub ( matcher . string , matcher . captures [ id ][ 1 ], matcher . captures [ id ][ 2 ]) 2500local check =utf8sub ( matcher . string , matcher . str , matcher . str + l ) 2501if captured == check then 2502for _ =0 , l do 2503matcher : nextStr () 2504end 2505matcher : nextFunc () 2506else 2507matcher : reset () 2508end 2509end 2510end 2511local function captureStart ( id ) 2512return function ( _ ) 2513matcher . captures [ id ][ 1 ] =matcher . str 2514matcher : nextFunc () 2515end 2516end 2517local function captureStop ( id ) 2518return function ( _ ) 2519matcher . captures [ id ][ 2 ] =matcher . str - 1 2520matcher : nextFunc () 2521end 2522end 2523 2524local function balancer ( str ) 2525local sum =0 2526local bc , ec =utf8sub ( str , 1 , 1 ), utf8sub ( str , 2 , 2 ) 2527local skip =len ( bc ) + len ( ec ) 2528bc , ec =utf8unicode ( bc ), utf8unicode ( ec ) 2529return function ( cC ) 2530if cC == ec and sum > 0 then 2531sum =sum - 1 2532if sum == 0 then 2533matcher : nextFunc () 2534end 2535matcher : nextStr () 2536elseif cC == bc then 2537sum =sum + 1 2538matcher : nextStr () 2539else 2540if sum == 0 or cC == - 1 then 2541sum =0 2542matcher : reset () 2543else 2544matcher : nextStr () 2545end 2546end 2547end , skip 2548end 2549 2550matcher . functions [ 1 ] =function ( _ ) 2551matcher : fullResetOnNextStr () 2552matcher . seqStart =matcher . str 2553matcher : nextFunc () 2554if ( matcher . str > matcher . startStr and matcher . fromStart ) or matcher . str >= matcher . stringLen then 2555matcher . stop =true 2556matcher . seqStart =nil 2557end 2558end 2559 2560local lastFunc 2561local ignore =false 2562local skip =nil 2563local it =( function () 2564local gen =utf8gensub ( regex ) 2565return function () 2566return gen ( skip ) 2567end 2568end )() 2569local cs ={} 2570for c , bs , be in it do 2571skip =nil 2572if plain then 2573table . insert ( matcher . functions , simple ( classMatchGenerator ( c , plain ))) 2574else 2575if ignore then 2576if find ( '123456789' , c , 1 , true ) then 2577if lastFunc then 2578table . insert ( matcher . functions , simple ( lastFunc )) 2579lastFunc =nil 2580end 2581table . insert ( matcher . functions , capture ( tonumber ( c ))) 2582elseif c == 'b' then 2583if lastFunc then 2584table . insert ( matcher . functions , simple ( lastFunc )) 2585lastFunc =nil 2586end 2587local b 2588b , skip =balancer ( sub ( regex , be + 1 , be + 9 )) 2589table . insert ( matcher . functions , b ) 2590else 2591lastFunc =classMatchGenerator ( '%' .. c ) 2592end 2593ignore =false 2594else 2595if c == '*' then 2596if lastFunc then 2597table . insert ( matcher . functions , star ( lastFunc )) 2598lastFunc =nil 2599else 2600error ( 'invalid regex after ' .. sub ( regex , 1 , bs )) 2601end 2602elseif c == '+' then 2603if lastFunc then 2604table . insert ( matcher . functions , simple ( lastFunc )) 2605table . insert ( matcher . functions , star ( lastFunc )) 2606lastFunc =nil 2607else 2608error ( 'invalid regex after ' .. sub ( regex , 1 , bs )) 2609end 2610elseif c == '-' then 2611if lastFunc then 2612table . insert ( matcher . functions , minus ( lastFunc )) 2613lastFunc =nil 2614else 2615error ( 'invalid regex after ' .. sub ( regex , 1 , bs )) 2616end 2617elseif c == '?' then 2618if lastFunc then 2619table . insert ( matcher . functions , question ( lastFunc )) 2620lastFunc =nil 2621else 2622error ( 'invalid regex after ' .. sub ( regex , 1 , bs )) 2623end 2624elseif c == '^' then 2625if bs == 1 then 2626matcher . fromStart =true 2627else 2628error ( 'invalid regex after ' .. sub ( regex , 1 , bs )) 2629end 2630elseif c == '$' then 2631if be == len ( regex ) then 2632matcher . toEnd =true 2633else 2634error ( 'invalid regex after ' .. sub ( regex , 1 , bs )) 2635end 2636elseif c == '[' then 2637if lastFunc then 2638table . insert ( matcher . functions , simple ( lastFunc )) 2639end 2640lastFunc , skip =classMatchGenerator ( sub ( regex , be + 1 )) 2641elseif c == '(' then 2642if lastFunc then 2643table . insert ( matcher . functions , simple ( lastFunc )) 2644lastFunc =nil 2645end 2646table . insert ( matcher . captures , {} ) 2647table . insert ( cs , # matcher . captures ) 2648table . insert ( matcher . functions , captureStart ( cs [ # cs ])) 2649if sub ( regex , be + 1 , be + 1 ) == ')' then matcher . captures [ # matcher . captures ]. empty =true end 2650elseif c == ')' then 2651if lastFunc then 2652table . insert ( matcher . functions , simple ( lastFunc )) 2653lastFunc =nil 2654end 2655local cap =table . remove ( cs ) 2656if not cap then 2657error ( 'invalid capture: "(" missing' ) 2658end 2659table . insert ( matcher . functions , captureStop ( cap )) 2660elseif c == '.' then 2661if lastFunc then 2662table . insert ( matcher . functions , simple ( lastFunc )) 2663end 2664lastFunc =function ( cC ) return cC ~= - 1 end 2665elseif c == '%' then 2666ignore =true 2667else 2668if lastFunc then 2669table . insert ( matcher . functions , simple ( lastFunc )) 2670end 2671lastFunc =classMatchGenerator ( c ) 2672end 2673end 2674end 2675end 2676if # cs > 0 then 2677error ( 'invalid capture: ")" missing' ) 2678end 2679if lastFunc then 2680table . insert ( matcher . functions , simple ( lastFunc )) 2681end 2682 2683table . insert ( matcher . functions , function () 2684if matcher . toEnd and matcher . str ~= matcher . stringLen then 2685matcher : reset () 2686else 2687matcher . stop =true 2688end 2689end ) 2690 2691matcher . nextFunc =function ( self ) 2692self . func =self . func + 1 2693end 2694matcher . nextStr =function ( self ) 2695self . str =self . str + 1 2696end 2697matcher . strReset =function ( self ) 2698local oldReset =self . reset 2699local str =self . str 2700self . reset =function ( s ) 2701s . str =str 2702s . reset =oldReset 2703end 2704end 2705matcher . fullResetOnNextFunc =function ( self ) 2706local oldReset =self . reset 2707local func =self . func + 1 2708local str =self . str 2709self . reset =function ( s ) 2710s . func =func 2711s . str =str 2712s . reset =oldReset 2713end 2714end 2715matcher . fullResetOnNextStr =function ( self ) 2716local oldReset =self . reset 2717local str =self . str + 1 2718local func =self . func 2719self . reset =function ( s ) 2720s . func =func 2721s . str =str 2722s . reset =oldReset 2723end 2724end 2725 2726matcher . process =function ( self , str , start ) 2727 2728self . func =1 2729start =start or 1 2730self . startStr =( start >= 0 ) and start or utf8len ( str ) + start + 1 2731self . seqStart =self . startStr 2732self . str =self . startStr 2733self . stringLen =utf8len ( str ) + 1 2734self . string =str 2735self . stop =false 2736 2737self . reset =function ( s ) 2738s . func =1 2739end 2740 2741-- local lastPos = self.str 2742-- local lastByte 2743local ch 2744while not self . stop do 2745if self . str < self . stringLen then 2746--[[ if lastPos < self.str then 2747print('last byte', lastByte) 2748ch, lastByte = utf8subWithBytes(str, 1, self.str - lastPos - 1, lastByte) 2749ch, lastByte = utf8subWithBytes(str, 1, 1, lastByte) 2750lastByte = lastByte - 1 2751else 2752ch, lastByte = utf8subWithBytes(str, self.str, self.str) 2753end 2754lastPos = self.str ]] 2755ch =utf8sub ( str , self . str , self . str ) 2756--print('char', ch, utf8unicode(ch)) 2757self . functions [ self . func ]( utf8unicode ( ch )) 2758else 2759self . functions [ self . func ]( - 1 ) 2760end 2761end 2762 2763if self . seqStart then 2764local captures ={} 2765for _ , pair in pairs ( self . captures ) do 2766if pair . empty then 2767table . insert ( captures , pair [ 1 ]) 2768else 2769table . insert ( captures , utf8sub ( str , pair [ 1 ], pair [ 2 ])) 2770end 2771end 2772return self . seqStart , self . str - 1 , unpack ( captures ) 2773end 2774end 2775 2776return matcher 2777end 2778 2779-- string.find 2780local function utf8find ( str , regex , init , plain ) 2781local matcher =cache [ regex ] or matcherGenerator ( regex , plain ) 2782return matcher : process ( str , init ) 2783end 2784 2785-- string.match 2786local function utf8match ( str , regex , init ) 2787init =init or 1 2788local found ={ utf8find ( str , regex , init ) } 2789if found [ 1 ] then 2790if found [ 3 ] then 2791return unpack ( found , 3 ) 2792end 2793return utf8sub ( str , found [ 1 ], found [ 2 ]) 2794end 2795end 2796 2797-- string.gmatch 2798local function utf8gmatch ( str , regex , all ) 2799regex =( utf8sub ( regex , 1 , 1 ) ~= '^' ) and regex or '%' .. regex 2800local lastChar =1 2801return function () 2802local found ={ utf8find ( str , regex , lastChar ) } 2803if found [ 1 ] then 2804lastChar =found [ 2 ] + 1 2805if found [ all and 1 or 3 ] then 2806return unpack ( found , all and 1 or 3 ) 2807end 2808return utf8sub ( str , found [ 1 ], found [ 2 ]) 2809end 2810end 2811end 2812 2813local function replace ( repl , args ) 2814local ret ='' 2815if type ( repl ) == 'string' then 2816local ignore =false 2817local num 2818for c in utf8gensub ( repl ) do 2819if not ignore then 2820if c == '%' then 2821ignore =true 2822else 2823ret =ret .. c 2824end 2825else 2826num =tonumber ( c ) 2827if num then 2828ret =ret .. args [ num ] 2829else 2830ret =ret .. c 2831end 2832ignore =false 2833end 2834end 2835elseif type ( repl ) == 'table' then 2836ret =repl [ args [ 1 ] or args [ 0 ]] or '' 2837elseif type ( repl ) == 'function' then 2838if # args > 0 then 2839ret =repl ( unpack ( args , 1 )) or '' 2840else 2841ret =repl ( args [ 0 ]) or '' 2842end 2843end 2844return ret 2845end 2846-- string.gsub 2847local function utf8gsub ( str , regex , repl , limit ) 2848limit =limit or - 1 2849local ret ='' 2850local prevEnd =1 2851local it =utf8gmatch ( str , regex , true ) 2852local found ={ it () } 2853local n =0 2854while # found > 0 and limit ~= n do 2855local args ={ [ 0 ] =utf8sub ( str , found [ 1 ], found [ 2 ]), unpack ( found , 3 ) } 2856ret =ret .. utf8sub ( str , prevEnd , found [ 1 ] - 1 ) 2857.. replace ( repl , args ) 2858prevEnd =found [ 2 ] + 1 2859n =n + 1 2860found ={ it () } 2861end 2862return ret .. utf8sub ( str , prevEnd ), n 2863end 2864 2865utf8 . sub =utf8sub 2866utf8 . reverse =utf8reverse 2867utf8 . char =utf8char 2868utf8 . unicode =utf8unicode 2869utf8 . gensub =utf8gensub 2870utf8 . byte =utf8unicode 2871utf8 . find =utf8find 2872utf8 . match =utf8match 2873utf8 . gmatch =utf8gmatch 2874utf8 . gsub =utf8gsub 2875utf8 . dump =dump 2876utf8 . format =format 2877utf8 . lower =utf8lower 2878utf8 . upper =utf8upper 2879utf8 . rep =rep 2880 2881return utf8