1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 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 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 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 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 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 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 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 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 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 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 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
|
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>The m17n Library: M-text</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<img id="MSearchSelect" src="search/search.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</div>
</li>
</ul>
</div>
</div>
<div class="contents">
<h1>M-text<br/>
<small>
[<a class="el" href="group__m17nCore.html">CORE API</a>]</small>
</h1>
<p>M-text objects and API for them.
<a href="#_details">More...</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Type of <em>M-texts</em>. <a href="#gae8bba45315c15c8f79ec4a73ebc52aec"></a><br/></td></tr>
<tr><td colspan="2"><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> { <br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59ad61701eea01de99f3bf3bd57d6b24d38">MTEXT_FORMAT_US_ASCII</a>,
<br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a008391579e58d7110f28d63736178d90">MTEXT_FORMAT_UTF_8</a>,
<br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a42252ef5d95a78cc719768d0fa3ce209">MTEXT_FORMAT_UTF_16LE</a>,
<br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59aab2d4798020fd8edb35089be48170cee">MTEXT_FORMAT_UTF_16BE</a>,
<br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a79785b67787c6ca1e9c415a2d76df1be">MTEXT_FORMAT_UTF_32LE</a>,
<br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a07b67ef89723794acb1ba743a30a79ef">MTEXT_FORMAT_UTF_32BE</a>,
<br/>
<a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a3edc8bb21d072d3ff41447f42ac13ad2">MTEXT_FORMAT_MAX</a>
<br/>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Enumeration for specifying the format of an M-text. </p>
<a href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga23c3bd3e53aa9ba5aec709a939865022">MTextLineBreakOption</a> { <br/>
<a class="el" href="group__m17nMtext.html#gga23c3bd3e53aa9ba5aec709a939865022ae88167377a944d4c84a1a89729aef111">MTEXT_LBO_SP_CM</a> = 1,
<br/>
<a class="el" href="group__m17nMtext.html#gga23c3bd3e53aa9ba5aec709a939865022a7866ca91fdc6b955b14637d911e9b3d5">MTEXT_LBO_KOREAN_SP</a> = 2,
<br/>
<a class="el" href="group__m17nMtext.html#gga23c3bd3e53aa9ba5aec709a939865022a2a5299f48bbbd8b87766cbf889495fb9">MTEXT_LBO_AI_AS_ID</a> = 4,
<br/>
<a class="el" href="group__m17nMtext.html#gga23c3bd3e53aa9ba5aec709a939865022a857141ca578c6e94548264c01a8e3d42">MTEXT_LBO_MAX</a>
<br/>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Enumeration for specifying a set of line breaking option. </p>
<a href="group__m17nMtext.html#ga23c3bd3e53aa9ba5aec709a939865022">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga0d1fa6a2b4c0630b9524d900cd4aab70">mtext_line_break</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int pos, int option, int *after)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find a linebreak postion of an M-text. <a href="#ga0d1fa6a2b4c0630b9524d900cd4aab70"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga1a82c0d7283e62698119ac9c46b3fa8a">mtext</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Allocate a new M-text. <a href="#ga1a82c0d7283e62698119ac9c46b3fa8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga2114a8366b5aaee6b5d344f69ea5dd78">mtext_from_data</a> (const void *data, int nitems, enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> format)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Allocate a new M-text with specified data. <a href="#ga2114a8366b5aaee6b5d344f69ea5dd78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga58dfc38b90385749199caa5e6bc10ec4">mtext_data</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> *fmt, int *nunits, int *pos_idx, int *unit_idx)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get information about the text data in M-text. <a href="#ga58dfc38b90385749199caa5e6bc10ec4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga28ea3879a9dae45127bd62499645c7c3">mtext_len</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Number of characters in M-text. <a href="#ga28ea3879a9dae45127bd62499645c7c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga29fd21f8bd3b80a09628ea2dc62db3e5">mtext_ref_char</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int pos)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the character at the specified position in an M-text. <a href="#ga29fd21f8bd3b80a09628ea2dc62db3e5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga1378506cd336f1d2029672991ecf8973">mtext_set_char</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int pos, int c)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Store a character into an M-text. <a href="#ga1378506cd336f1d2029672991ecf8973"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga21036a5bc066530f7cf9196fbb568efd">mtext_cat_char</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int c)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a character to an M-text. <a href="#ga21036a5bc066530f7cf9196fbb568efd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gacd7bdc22fa2aacc6cfb3630697e6d3f9">mtext_dup</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a copy of an M-text. <a href="#gacd7bdc22fa2aacc6cfb3630697e6d3f9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaf0a0af628d6e4d69fbacea149885a72d">mtext_cat</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append an M-text to another. <a href="#gaf0a0af628d6e4d69fbacea149885a72d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gafd2fa9c1080067533e584e92ebe15f5c">mtext_ncat</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a part of an M-text to another. <a href="#gafd2fa9c1080067533e584e92ebe15f5c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaa9f56201d62d4f39e8a64b4460450ba4">mtext_cpy</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy an M-text to another. <a href="#gaa9f56201d62d4f39e8a64b4460450ba4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga83df72acd6f78cec009b642e0afdcfee">mtext_ncpy</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy the first some characters in an M-text to another. <a href="#ga83df72acd6f78cec009b642e0afdcfee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga2349c5cda40d1880c0c560be4c69c911">mtext_duplicate</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int from, int to)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new M-text from a part of an existing M-text. <a href="#ga2349c5cda40d1880c0c560be4c69c911"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga45dcea52c2d59bcd129af5e8323593cf">mtext_copy</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int pos, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int from, int to)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy characters in the specified range into an M-text. <a href="#ga45dcea52c2d59bcd129af5e8323593cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga592d9cfe5c76ee384568c053ad7ea8b5">mtext_del</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int from, int to)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete characters in the specified range destructively. <a href="#ga592d9cfe5c76ee384568c053ad7ea8b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga38ed0e4b19ec03ad6d522ab433acde4e">mtext_ins</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int pos, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert an M-text into another M-text. <a href="#ga38ed0e4b19ec03ad6d522ab433acde4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga39d820131ec741f5822b206f44dce2df">mtext_insert</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int pos, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int from, int to)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert sub-text of an M-text into another M-text. <a href="#ga39d820131ec741f5822b206f44dce2df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga683d68d84b907bcac211cbdea41c1e70">mtext_ins_char</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int pos, int c, int n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert a character into an M-text. <a href="#ga683d68d84b907bcac211cbdea41c1e70"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga715661081379ea5a29e591e6601547ba">mtext_replace</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int from1, int to1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int from2, int to2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Replace sub-text of M-text with another. <a href="#ga715661081379ea5a29e591e6601547ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga8b8d4053c6c7bc47507bad39f3d332f2">mtext_character</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int from, int to, int c)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Search a character in an M-text. <a href="#ga8b8d4053c6c7bc47507bad39f3d332f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga7d3f44053118699084e94f1e8493c787">mtext_chr</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int c)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the position of the first occurrence of a character in an M-text. <a href="#ga7d3f44053118699084e94f1e8493c787"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gabb69a4f045cb215091e8cb02f491f4fd">mtext_rchr</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int c)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the position of the last occurrence of a character in an M-text. <a href="#gabb69a4f045cb215091e8cb02f491f4fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb">mtext_cmp</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two M-texts character-by-character. <a href="#gaf2d025d985da7b4f98d07c81fdd500cb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga23fa60794f929caca8c73abebac241cf">mtext_ncmp</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare initial parts of two M-texts character-by-character. <a href="#ga23fa60794f929caca8c73abebac241cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434">mtext_compare</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int from1, int to1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int from2, int to2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare specified regions of two M-texts. <a href="#gaf514b386c0d6469ed56e7806901d2434"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaaa4ce420a94b2e407ad388fc9141af7a">mtext_spn</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *accept)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Search an M-text for a set of characters. <a href="#gaaa4ce420a94b2e407ad388fc9141af7a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gad4ed9687e60b2cb6f363b244bb756ac8">mtext_cspn</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *reject)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Search an M-text for the complement of a set of characters. <a href="#gad4ed9687e60b2cb6f363b244bb756ac8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga9f1ba03d5415f9161c02bc02c5341323">mtext_pbrk</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *accept)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Search an M-text for any of a set of characters. <a href="#ga9f1ba03d5415f9161c02bc02c5341323"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gab9ba74b25f75a7395d237f98d43fc50f">mtext_tok</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *delim, int *pos)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Look for a token in an M-text. <a href="#gab9ba74b25f75a7395d237f98d43fc50f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaa8d53b235cd63fb544fa868c8dd00319">mtext_text</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int pos, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Locate an M-text in another. <a href="#gaa8d53b235cd63fb544fa868c8dd00319"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaa2328a6f85eb2f1f0cdbb51c1e09d294">mtext_search</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int from, int to, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Locate an M-text in a specific range of another. <a href="#gaa2328a6f85eb2f1f0cdbb51c1e09d294"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908">mtext_casecmp</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two M-texts ignoring cases. <a href="#gabc63537384fb25bccd996e35a9bbc908"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9">mtext_ncasecmp</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare initial parts of two M-texts ignoring cases. <a href="#ga9b232386c4307b95dd42685236dc3ce9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5">mtext_case_compare</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt1, int from1, int to1, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt2, int from2, int to2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare specified regions of two M-texts ignoring cases. <a href="#ga250784b22861845abac509f0d8324be5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gab2a252c7ef64c168467475f0e4ffe072">mtext_lowercase</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Lowercase an M-text. <a href="#gab2a252c7ef64c168467475f0e4ffe072"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gabca0474405604234294cc5a4e341ca18">mtext_titlecase</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Titlecase an M-text. <a href="#gabca0474405604234294cc5a4e341ca18"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#gaf8dbb06e910d0f87dbb53d4426977d4f">mtext_uppercase</a> (<a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Uppercase an M-text. <a href="#gaf8dbb06e910d0f87dbb53d4426977d4f"></a><br/></td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga32374f3750874ea0142af8dac831ab25">Mlanguage</a></td></tr>
<tr><td colspan="2"><h2>Variables: Default Endian of UTF-16 and UTF-32</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrp8e19e46dd8d400b24cc31adc8970d36c"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga985ecc7ae135b77919af483d12d4d337">MTEXT_FORMAT_UTF_16</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Variable of value MTEXT_FORMAT_UTF_16LE or MTEXT_FORMAT_UTF_16BE. <a href="#ga985ecc7ae135b77919af483d12d4d337"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nMtext.html#ga3e3b72f642ea80b03cf0644325fccfbe">MTEXT_FORMAT_UTF_32</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Variable of value MTEXT_FORMAT_UTF_32LE or MTEXT_FORMAT_UTF_32BE. <a href="#ga3e3b72f642ea80b03cf0644325fccfbe"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>M-text objects and API for them. </p>
<p>In the m17n library, text is represented as an object called <em>M-text</em> rather than as a C-string (<code>char *</code> or <code>unsigned char *</code>). An M-text is a sequence of characters whose length is equals to or more than 0, and can be coined from various character sources, e.g. C-strings, files, character codes, etc.</p>
<p>M-texts are more useful than C-strings in the following points.</p>
<ul>
<li>M-texts can handle mixture of characters of various scripts, including all Unicode characters and more. This is an indispensable facility when handling multilingual text.</li>
</ul>
<ul>
<li>Each character in an M-text can have properties called <em>text</em> <em>properties</em>. Text properties store various kinds of information attached to parts of an M-text to provide application programs with a unified view of those information. As rich information can be stored in M-texts in the form of text properties, functions in application programs can be simple.</li>
</ul>
<p>In addition, the library provides many functions to manipulate an M-text just the same way as a C-string. </p>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="gae8bba45315c15c8f79ec4a73ebc52aec"></a><!-- doxytag: member="m17n-core.h::MText" ref="gae8bba45315c15c8f79ec4a73ebc52aec" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Type of <em>M-texts</em>. </p>
<p>The type <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec" title="Type of M-texts.">MText</a> is for an <em>M-text</em> object. Its internal structure is concealed from application programs. </p>
</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="ga4148a7a6fd502d4fb4a786d9fdb7da59"></a><!-- doxytag: member="m17n-core.h::MTextFormat" ref="ga4148a7a6fd502d4fb4a786d9fdb7da59" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Enumeration for specifying the format of an M-text. </p>
<p>The enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59" title="Enumeration for specifying the format of an M-text.">MTextFormat</a> is used as an argument of the <a class="el" href="group__m17nMtext.html#ga2114a8366b5aaee6b5d344f69ea5dd78" title="Allocate a new M-text with specified data.">mtext_from_data()</a> function to specify the format of data from which an M-text is created. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59ad61701eea01de99f3bf3bd57d6b24d38"></a><!-- doxytag: member="MTEXT_FORMAT_US_ASCII" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59ad61701eea01de99f3bf3bd57d6b24d38" args="" -->MTEXT_FORMAT_US_ASCII</em> </td><td>
<p>US-ASCII encoding </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59a008391579e58d7110f28d63736178d90"></a><!-- doxytag: member="MTEXT_FORMAT_UTF_8" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59a008391579e58d7110f28d63736178d90" args="" -->MTEXT_FORMAT_UTF_8</em> </td><td>
<p>UTF-8 encoding </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59a42252ef5d95a78cc719768d0fa3ce209"></a><!-- doxytag: member="MTEXT_FORMAT_UTF_16LE" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59a42252ef5d95a78cc719768d0fa3ce209" args="" -->MTEXT_FORMAT_UTF_16LE</em> </td><td>
<p>UTF-16LE encoding </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59aab2d4798020fd8edb35089be48170cee"></a><!-- doxytag: member="MTEXT_FORMAT_UTF_16BE" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59aab2d4798020fd8edb35089be48170cee" args="" -->MTEXT_FORMAT_UTF_16BE</em> </td><td>
<p>UTF-16BE encoding </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59a79785b67787c6ca1e9c415a2d76df1be"></a><!-- doxytag: member="MTEXT_FORMAT_UTF_32LE" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59a79785b67787c6ca1e9c415a2d76df1be" args="" -->MTEXT_FORMAT_UTF_32LE</em> </td><td>
<p>UTF-32LE encoding </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59a07b67ef89723794acb1ba743a30a79ef"></a><!-- doxytag: member="MTEXT_FORMAT_UTF_32BE" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59a07b67ef89723794acb1ba743a30a79ef" args="" -->MTEXT_FORMAT_UTF_32BE</em> </td><td>
<p>UTF-32BE encoding </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4148a7a6fd502d4fb4a786d9fdb7da59a3edc8bb21d072d3ff41447f42ac13ad2"></a><!-- doxytag: member="MTEXT_FORMAT_MAX" ref="gga4148a7a6fd502d4fb4a786d9fdb7da59a3edc8bb21d072d3ff41447f42ac13ad2" args="" -->MTEXT_FORMAT_MAX</em> </td><td>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga23c3bd3e53aa9ba5aec709a939865022"></a><!-- doxytag: member="m17n-core.h::MTextLineBreakOption" ref="ga23c3bd3e53aa9ba5aec709a939865022" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__m17nMtext.html#ga23c3bd3e53aa9ba5aec709a939865022">MTextLineBreakOption</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Enumeration for specifying a set of line breaking option. </p>
<p>The enum <a class="el" href="group__m17nMtext.html#ga23c3bd3e53aa9ba5aec709a939865022" title="Enumeration for specifying a set of line breaking option.">MTextLineBreakOption</a> is to control the line breaking algorithm of the function <a class="el" href="group__m17nMtext.html#ga0d1fa6a2b4c0630b9524d900cd4aab70" title="Find a linebreak postion of an M-text.">mtext_line_break()</a> by specifying logical-or of the members in the arg <em>option</em>. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga23c3bd3e53aa9ba5aec709a939865022ae88167377a944d4c84a1a89729aef111"></a><!-- doxytag: member="MTEXT_LBO_SP_CM" ref="gga23c3bd3e53aa9ba5aec709a939865022ae88167377a944d4c84a1a89729aef111" args="" -->MTEXT_LBO_SP_CM</em> </td><td>
<p>Specify the legacy support for space character as base for combining marks. See the section 8.3 of UAX#14. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga23c3bd3e53aa9ba5aec709a939865022a7866ca91fdc6b955b14637d911e9b3d5"></a><!-- doxytag: member="MTEXT_LBO_KOREAN_SP" ref="gga23c3bd3e53aa9ba5aec709a939865022a7866ca91fdc6b955b14637d911e9b3d5" args="" -->MTEXT_LBO_KOREAN_SP</em> </td><td>
<p>Specify to use space characters for line breaking Korean text. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga23c3bd3e53aa9ba5aec709a939865022a2a5299f48bbbd8b87766cbf889495fb9"></a><!-- doxytag: member="MTEXT_LBO_AI_AS_ID" ref="gga23c3bd3e53aa9ba5aec709a939865022a2a5299f48bbbd8b87766cbf889495fb9" args="" -->MTEXT_LBO_AI_AS_ID</em> </td><td>
<p>Specify to treat characters of ambiguous line-breaking class as of ideographic line-breaking class. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga23c3bd3e53aa9ba5aec709a939865022a857141ca578c6e94548264c01a8e3d42"></a><!-- doxytag: member="MTEXT_LBO_MAX" ref="gga23c3bd3e53aa9ba5aec709a939865022a857141ca578c6e94548264c01a8e3d42" args="" -->MTEXT_LBO_MAX</em> </td><td>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga0d1fa6a2b4c0630b9524d900cd4aab70"></a><!-- doxytag: member="mtext-lbrk.c::mtext_line_break" ref="ga0d1fa6a2b4c0630b9524d900cd4aab70" args="(MText *mt, int pos, int option, int *after)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_line_break </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>option</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"> <em>after</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Find a linebreak postion of an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga0d1fa6a2b4c0630b9524d900cd4aab70" title="Find a linebreak postion of an M-text.">mtext_line_break()</a> function checks if position <b>pos</b> is a proper linebreak position of an M-text <b>mt</b> according to the algorithm of The Unicode Standard 4.0 UAX#14. It so, it returns <b>pos</b>. Otherwise, it returns a proper linebreak position before <b>pos</b>.</p>
<p>If <b>option</b> is nonzero, it controls the algorithm by logical-or of the members of <a class="el" href="group__m17nMtext.html#ga23c3bd3e53aa9ba5aec709a939865022" title="Enumeration for specifying a set of line breaking option.">MTextLineBreakOption</a>.</p>
<p>If <b>after</b> is not NULL, a proper linebreak position after <b>pos</b> is stored there. </p>
</div>
</div>
<a class="anchor" id="ga1a82c0d7283e62698119ac9c46b3fa8a"></a><!-- doxytag: member="mtext.c::mtext" ref="ga1a82c0d7283e62698119ac9c46b3fa8a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Allocate a new M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga1a82c0d7283e62698119ac9c46b3fa8a" title="Allocate a new M-text.">mtext()</a> function allocates a new M-text of length 0 and returns a pointer to it. The allocated M-text will not be freed unless the user explicitly does so with the <a class="el" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref()</a> function.</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga2114a8366b5aaee6b5d344f69ea5dd78"></a><!-- doxytag: member="mtext.c::mtext_from_data" ref="ga2114a8366b5aaee6b5d344f69ea5dd78" args="(const void *data, int nitems, enum MTextFormat format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_from_data </td>
<td>(</td>
<td class="paramtype">const void * </td>
<td class="paramname"> <em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>nitems</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> </td>
<td class="paramname"> <em>format</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Allocate a new M-text with specified data. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga2114a8366b5aaee6b5d344f69ea5dd78" title="Allocate a new M-text with specified data.">mtext_from_data()</a> function allocates a new M-text whose character sequence is specified by array <b>data</b> of <b>nitems</b> elements. <b>format</b> specifies the format of <b>data</b>.</p>
<p>When <b>format</b> is either <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59ad61701eea01de99f3bf3bd57d6b24d38">MTEXT_FORMAT_US_ASCII</a> or <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a008391579e58d7110f28d63736178d90">MTEXT_FORMAT_UTF_8</a>, the contents of <b>data</b> must be of the type <code>unsigned</code> <code>char</code>, and <b>nitems</b> counts by byte.</p>
<p>When <b>format</b> is either <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a42252ef5d95a78cc719768d0fa3ce209">MTEXT_FORMAT_UTF_16LE</a> or <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59aab2d4798020fd8edb35089be48170cee">MTEXT_FORMAT_UTF_16BE</a>, the contents of <b>data</b> must be of the type <code>unsigned</code> <code>short</code>, and <b>nitems</b> counts by unsigned short.</p>
<p>When <b>format</b> is either <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a79785b67787c6ca1e9c415a2d76df1be">MTEXT_FORMAT_UTF_32LE</a> or <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a07b67ef89723794acb1ba743a30a79ef">MTEXT_FORMAT_UTF_32BE</a>, the contents of <b>data</b> must be of the type <code>unsigned</code>, and <b>nitems</b> counts by unsigned.</p>
<p>The character sequence of the M-text is not modifiable. The contents of <b>data</b> must not be modified while the M-text is alive.</p>
<p>The allocated M-text will not be freed unless the user explicitly does so with the <a class="el" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref()</a> function. Even in that case, <b>data</b> is not freed.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga2114a8366b5aaee6b5d344f69ea5dd78" title="Allocate a new M-text with specified data.">mtext_from_data()</a> returns a pointer to the allocated M-text. Otherwise it returns <code>NULL</code> and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_MTEXT</code> </dd></dl>
</div>
</div>
<a class="anchor" id="ga58dfc38b90385749199caa5e6bc10ec4"></a><!-- doxytag: member="mtext.c::mtext_data" ref="ga58dfc38b90385749199caa5e6bc10ec4" args="(MText *mt, enum MTextFormat *fmt, int *nunits, int *pos_idx, int *unit_idx)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* mtext_data </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> * </td>
<td class="paramname"> <em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"> <em>nunits</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"> <em>pos_idx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"> <em>unit_idx</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get information about the text data in M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga58dfc38b90385749199caa5e6bc10ec4" title="Get information about the text data in M-text.">mtext_data()</a> function returns a pointer to the text data of M-text <b>mt</b>. If <b>fmt</b> is not NULL, the format of the text data is stored in it. If <b>nunits</b> is not NULL, the number of units of the text data is stored in it.</p>
<p>If <b>pos_idx</b> is not NULL and it points to a non-negative number, what it points to is a character position. In this case, the return value is a pointer to the text data of a character at that position.</p>
<p>Otherwise, if <b>unit_idx</b> is not NULL, it points to a unit position. In this case, the return value is a pointer to the text data of a character containing that unit.</p>
<p>The character position and unit position of the return value are stored in <b>pos_idx</b> and <b>unit_dix</b> respectively if they are not NULL.</p>
<ul>
<li>
<p class="startli">If the format of the text data is MTEXT_FORMAT_US_ASCII or MTEXT_FORMAT_UTF_8, one unit is unsigned char.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If the format is MTEXT_FORMAT_UTF_16LE or MTEXT_FORMAT_UTF_16BE, one unit is unsigned short.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If the format is MTEXT_FORMAT_UTF_32LE or MTEXT_FORMAT_UTF_32BE, one unit is unsigned int.</p>
<p class="endli"></p>
</li>
</ul>
</div>
</div>
<a class="anchor" id="ga28ea3879a9dae45127bd62499645c7c3"></a><!-- doxytag: member="mtext.c::mtext_len" ref="ga28ea3879a9dae45127bd62499645c7c3" args="(MText *mt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_len </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of characters in M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga28ea3879a9dae45127bd62499645c7c3" title="Number of characters in M-text.">mtext_len()</a> function returns the number of characters in M-text <b>mt</b>. </p>
</div>
</div>
<a class="anchor" id="ga29fd21f8bd3b80a09628ea2dc62db3e5"></a><!-- doxytag: member="mtext.c::mtext_ref_char" ref="ga29fd21f8bd3b80a09628ea2dc62db3e5" args="(MText *mt, int pos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_ref_char </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the character at the specified position in an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga29fd21f8bd3b80a09628ea2dc62db3e5" title="Return the character at the specified position in an M-text.">mtext_ref_char()</a> function returns the character at <b>pos</b> in M-text <b>mt</b>. If an error is detected, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</p>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
</div>
</div>
<a class="anchor" id="ga1378506cd336f1d2029672991ecf8973"></a><!-- doxytag: member="mtext.c::mtext_set_char" ref="ga1378506cd336f1d2029672991ecf8973" args="(MText *mt, int pos, int c)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_set_char </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>c</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Store a character into an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga1378506cd336f1d2029672991ecf8973" title="Store a character into an M-text.">mtext_set_char()</a> function sets character <b>c</b>, which has no text properties, at <b>pos</b> in M-text <b>mt</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga1378506cd336f1d2029672991ecf8973" title="Store a character into an M-text.">mtext_set_char()</a> returns 0. Otherwise it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
</div>
</div>
<a class="anchor" id="ga21036a5bc066530f7cf9196fbb568efd"></a><!-- doxytag: member="mtext.c::mtext_cat_char" ref="ga21036a5bc066530f7cf9196fbb568efd" args="(MText *mt, int c)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_cat_char </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>c</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append a character to an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga21036a5bc066530f7cf9196fbb568efd" title="Append a character to an M-text.">mtext_cat_char()</a> function appends character <b>c</b>, which has no text properties, to the end of M-text <b>mt</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns a pointer to the resulting M-text <b>mt</b>. If <b>c</b> is an invalid character, it returns <code>NULL</code>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf0a0af628d6e4d69fbacea149885a72d" title="Append an M-text to another.">mtext_cat()</a>, <a class="el" href="group__m17nMtext.html#gafd2fa9c1080067533e584e92ebe15f5c" title="Append a part of an M-text to another.">mtext_ncat()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gacd7bdc22fa2aacc6cfb3630697e6d3f9"></a><!-- doxytag: member="mtext.c::mtext_dup" ref="gacd7bdc22fa2aacc6cfb3630697e6d3f9" args="(MText *mt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_dup </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a copy of an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#gacd7bdc22fa2aacc6cfb3630697e6d3f9" title="Create a copy of an M-text.">mtext_dup()</a> function creates a copy of M-text <b>mt</b> while inheriting all the text properties of <b>mt</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns a pointer to the created copy.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga2349c5cda40d1880c0c560be4c69c911" title="Create a new M-text from a part of an existing M-text.">mtext_duplicate()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaf0a0af628d6e4d69fbacea149885a72d"></a><!-- doxytag: member="mtext.c::mtext_cat" ref="gaf0a0af628d6e4d69fbacea149885a72d" args="(MText *mt1, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_cat </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append an M-text to another. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaf0a0af628d6e4d69fbacea149885a72d" title="Append an M-text to another.">mtext_cat()</a> function appends M-text <b>mt2</b> to the end of M-text <b>mt1</b> while inheriting all the text properties. <b>mt2</b> itself is not modified.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns a pointer to the resulting M-text <b>mt1</b>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gafd2fa9c1080067533e584e92ebe15f5c" title="Append a part of an M-text to another.">mtext_ncat()</a>, <a class="el" href="group__m17nMtext.html#ga21036a5bc066530f7cf9196fbb568efd" title="Append a character to an M-text.">mtext_cat_char()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gafd2fa9c1080067533e584e92ebe15f5c"></a><!-- doxytag: member="mtext.c::mtext_ncat" ref="gafd2fa9c1080067533e584e92ebe15f5c" args="(MText *mt1, MText *mt2, int n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_ncat </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>n</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append a part of an M-text to another. </p>
<p>The <a class="el" href="group__m17nMtext.html#gafd2fa9c1080067533e584e92ebe15f5c" title="Append a part of an M-text to another.">mtext_ncat()</a> function appends the first <b>n</b> characters of M-text <b>mt2</b> to the end of M-text <b>mt1</b> while inheriting all the text properties. If the length of <b>mt2</b> is less than <b>n</b>, all characters are copied. <b>mt2</b> is not modified.</p>
<dl class="user"><dt><b>Return value: </b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#gafd2fa9c1080067533e584e92ebe15f5c" title="Append a part of an M-text to another.">mtext_ncat()</a> returns a pointer to the resulting M-text <b>mt1</b>. If an error is detected, it returns <code>NULL</code> and assigns an error code to the global variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf0a0af628d6e4d69fbacea149885a72d" title="Append an M-text to another.">mtext_cat()</a>, <a class="el" href="group__m17nMtext.html#ga21036a5bc066530f7cf9196fbb568efd" title="Append a character to an M-text.">mtext_cat_char()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaa9f56201d62d4f39e8a64b4460450ba4"></a><!-- doxytag: member="mtext.c::mtext_cpy" ref="gaa9f56201d62d4f39e8a64b4460450ba4" args="(MText *mt1, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_cpy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy an M-text to another. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaa9f56201d62d4f39e8a64b4460450ba4" title="Copy an M-text to another.">mtext_cpy()</a> function copies M-text <b>mt2</b> to M-text <b>mt1</b> while inheriting all the text properties. The old text in <b>mt1</b> is overwritten and the length of <b>mt1</b> is extended if necessary. <b>mt2</b> is not modified.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns a pointer to the resulting M-text <b>mt1</b>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga83df72acd6f78cec009b642e0afdcfee" title="Copy the first some characters in an M-text to another.">mtext_ncpy()</a>, <a class="el" href="group__m17nMtext.html#ga45dcea52c2d59bcd129af5e8323593cf" title="Copy characters in the specified range into an M-text.">mtext_copy()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga83df72acd6f78cec009b642e0afdcfee"></a><!-- doxytag: member="mtext.c::mtext_ncpy" ref="ga83df72acd6f78cec009b642e0afdcfee" args="(MText *mt1, MText *mt2, int n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_ncpy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>n</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy the first some characters in an M-text to another. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga83df72acd6f78cec009b642e0afdcfee" title="Copy the first some characters in an M-text to another.">mtext_ncpy()</a> function copies the first <b>n</b> characters of M-text <b>mt2</b> to M-text <b>mt1</b> while inheriting all the text properties. If the length of <b>mt2</b> is less than <b>n</b>, all characters of <b>mt2</b> are copied. The old text in <b>mt1</b> is overwritten and the length of <b>mt1</b> is extended if necessary. <b>mt2</b> is not modified.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga83df72acd6f78cec009b642e0afdcfee" title="Copy the first some characters in an M-text to another.">mtext_ncpy()</a> returns a pointer to the resulting M-text <b>mt1</b>. If an error is detected, it returns <code>NULL</code> and assigns an error code to the global variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaa9f56201d62d4f39e8a64b4460450ba4" title="Copy an M-text to another.">mtext_cpy()</a>, <a class="el" href="group__m17nMtext.html#ga45dcea52c2d59bcd129af5e8323593cf" title="Copy characters in the specified range into an M-text.">mtext_copy()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga2349c5cda40d1880c0c560be4c69c911"></a><!-- doxytag: member="mtext.c::mtext_duplicate" ref="ga2349c5cda40d1880c0c560be4c69c911" args="(MText *mt, int from, int to)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_duplicate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new M-text from a part of an existing M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga2349c5cda40d1880c0c560be4c69c911" title="Create a new M-text from a part of an existing M-text.">mtext_duplicate()</a> function creates a copy of sub-text of M-text <b>mt</b>, starting at <b>from</b> (inclusive) and ending at <b>to</b> (exclusive) while inheriting all the text properties of <b>mt</b>. <b>mt</b> itself is not modified.</p>
<dl class="user"><dt><b>Return value: </b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga2349c5cda40d1880c0c560be4c69c911" title="Create a new M-text from a part of an existing M-text.">mtext_duplicate()</a> returns a pointer to the created M-text. If an error is detected, it returns NULL and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gacd7bdc22fa2aacc6cfb3630697e6d3f9" title="Create a copy of an M-text.">mtext_dup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga45dcea52c2d59bcd129af5e8323593cf"></a><!-- doxytag: member="mtext.c::mtext_copy" ref="ga45dcea52c2d59bcd129af5e8323593cf" args="(MText *mt1, int pos, MText *mt2, int from, int to)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_copy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy characters in the specified range into an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga45dcea52c2d59bcd129af5e8323593cf" title="Copy characters in the specified range into an M-text.">mtext_copy()</a> function copies the text between <b>from</b> (inclusive) and <b>to</b> (exclusive) in M-text <b>mt2</b> to the region starting at <b>pos</b> in M-text <b>mt1</b> while inheriting the text properties. The old text in <b>mt1</b> is overwritten and the length of <b>mt1</b> is extended if necessary. <b>mt2</b> is not modified.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga45dcea52c2d59bcd129af5e8323593cf" title="Copy characters in the specified range into an M-text.">mtext_copy()</a> returns a pointer to the modified <b>mt1</b>. Otherwise, it returns <code>NULL</code> and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaa9f56201d62d4f39e8a64b4460450ba4" title="Copy an M-text to another.">mtext_cpy()</a>, <a class="el" href="group__m17nMtext.html#ga83df72acd6f78cec009b642e0afdcfee" title="Copy the first some characters in an M-text to another.">mtext_ncpy()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga592d9cfe5c76ee384568c053ad7ea8b5"></a><!-- doxytag: member="mtext.c::mtext_del" ref="ga592d9cfe5c76ee384568c053ad7ea8b5" args="(MText *mt, int from, int to)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_del </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Delete characters in the specified range destructively. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga592d9cfe5c76ee384568c053ad7ea8b5" title="Delete characters in the specified range destructively.">mtext_del()</a> function deletes the characters in the range <b>from</b> (inclusive) and <b>to</b> (exclusive) from M-text <b>mt</b> destructively. As a result, the length of <b>mt</b> shrinks by (<b>to</b> - <b>from</b>) characters.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga592d9cfe5c76ee384568c053ad7ea8b5" title="Delete characters in the specified range destructively.">mtext_del()</a> returns 0. Otherwise, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga38ed0e4b19ec03ad6d522ab433acde4e" title="Insert an M-text into another M-text.">mtext_ins()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga38ed0e4b19ec03ad6d522ab433acde4e"></a><!-- doxytag: member="mtext.c::mtext_ins" ref="ga38ed0e4b19ec03ad6d522ab433acde4e" args="(MText *mt1, int pos, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_ins </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Insert an M-text into another M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga38ed0e4b19ec03ad6d522ab433acde4e" title="Insert an M-text into another M-text.">mtext_ins()</a> function inserts M-text <b>mt2</b> into M-text <b>mt1</b>, at position <b>pos</b>. As a result, <b>mt1</b> is lengthen by the length of <b>mt2</b>. On insertion, all the text properties of <b>mt2</b> are inherited. The original <b>mt2</b> is not modified.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga38ed0e4b19ec03ad6d522ab433acde4e" title="Insert an M-text into another M-text.">mtext_ins()</a> returns 0. Otherwise, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> , <code>MERROR_MTEXT</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga592d9cfe5c76ee384568c053ad7ea8b5" title="Delete characters in the specified range destructively.">mtext_del()</a> , <a class="el" href="group__m17nMtext.html#ga39d820131ec741f5822b206f44dce2df" title="Insert sub-text of an M-text into another M-text.">mtext_insert()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga39d820131ec741f5822b206f44dce2df"></a><!-- doxytag: member="mtext.c::mtext_insert" ref="ga39d820131ec741f5822b206f44dce2df" args="(MText *mt1, int pos, MText *mt2, int from, int to)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_insert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Insert sub-text of an M-text into another M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga39d820131ec741f5822b206f44dce2df" title="Insert sub-text of an M-text into another M-text.">mtext_insert()</a> function inserts sub-text of M-text <b>mt2</b> between <b>from</b> (inclusive) and <b>to</b> (exclusive) into M-text <b>mt1</b>, at position <b>pos</b>. As a result, <b>mt1</b> is lengthen by (<b>to</b> - <b>from</b>). On insertion, all the text properties of the sub-text of <b>mt2</b> are inherited.</p>
<dl class="user"><dt><b>Return value: </b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga39d820131ec741f5822b206f44dce2df" title="Insert sub-text of an M-text into another M-text.">mtext_insert()</a> returns 0. Otherwise, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_MTEXT</code> , <code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga38ed0e4b19ec03ad6d522ab433acde4e" title="Insert an M-text into another M-text.">mtext_ins()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga683d68d84b907bcac211cbdea41c1e70"></a><!-- doxytag: member="mtext.c::mtext_ins_char" ref="ga683d68d84b907bcac211cbdea41c1e70" args="(MText *mt, int pos, int c, int n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_ins_char </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>c</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>n</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Insert a character into an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga683d68d84b907bcac211cbdea41c1e70" title="Insert a character into an M-text.">mtext_ins_char()</a> function inserts <b>n</b> copies of character <b>c</b> into M-text <b>mt</b> at position <b>pos</b>. As a result, <b>mt</b> is lengthen by <b>n</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga38ed0e4b19ec03ad6d522ab433acde4e" title="Insert an M-text into another M-text.">mtext_ins()</a> returns 0. Otherwise, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd>mtext_ins, <a class="el" href="group__m17nMtext.html#ga592d9cfe5c76ee384568c053ad7ea8b5" title="Delete characters in the specified range destructively.">mtext_del()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga715661081379ea5a29e591e6601547ba"></a><!-- doxytag: member="mtext.c::mtext_replace" ref="ga715661081379ea5a29e591e6601547ba" args="(MText *mt1, int from1, int to1, MText *mt2, int from2, int to2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_replace </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Replace sub-text of M-text with another. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga715661081379ea5a29e591e6601547ba" title="Replace sub-text of M-text with another.">mtext_replace()</a> function replaces sub-text of M-text <b>mt1</b> between <b>from1</b> (inclusive) and <b>to1</b> (exclusive) with the sub-text of M-text <b>mt2</b> between <b>from2</b> (inclusive) and <b>to2</b> (exclusive). The new sub-text inherits text properties of the old sub-text.</p>
<dl class="user"><dt><b>Return value: </b></dt><dd>If the operation was successful, <a class="el" href="group__m17nMtext.html#ga715661081379ea5a29e591e6601547ba" title="Replace sub-text of M-text with another.">mtext_replace()</a> returns 0. Otherwise, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_MTEXT</code> , <code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga39d820131ec741f5822b206f44dce2df" title="Insert sub-text of an M-text into another M-text.">mtext_insert()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga8b8d4053c6c7bc47507bad39f3d332f2"></a><!-- doxytag: member="mtext.c::mtext_character" ref="ga8b8d4053c6c7bc47507bad39f3d332f2" args="(MText *mt, int from, int to, int c)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_character </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>c</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Search a character in an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga8b8d4053c6c7bc47507bad39f3d332f2" title="Search a character in an M-text.">mtext_character()</a> function searches M-text <b>mt</b> for character <b>c</b>. If <b>from</b> is less than <b>to</b>, the search begins at position <b>from</b> and goes forward but does not exceed (<b>to</b> - 1). Otherwise, the search begins at position (<b>from</b> - 1) and goes backward but does not exceed <b>to</b>. An invalid position specification is regarded as both <b>from</b> and <b>to</b> being 0.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>c</b> is found, <a class="el" href="group__m17nMtext.html#ga8b8d4053c6c7bc47507bad39f3d332f2" title="Search a character in an M-text.">mtext_character()</a> returns the position of its first occurrence. Otherwise it returns -1 without changing the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>. If an error is detected, it returns -1 and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga7d3f44053118699084e94f1e8493c787" title="Return the position of the first occurrence of a character in an M-text.">mtext_chr()</a>, <a class="el" href="group__m17nMtext.html#gabb69a4f045cb215091e8cb02f491f4fd" title="Return the position of the last occurrence of a character in an M-text.">mtext_rchr()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga7d3f44053118699084e94f1e8493c787"></a><!-- doxytag: member="mtext.c::mtext_chr" ref="ga7d3f44053118699084e94f1e8493c787" args="(MText *mt, int c)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_chr </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>c</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the position of the first occurrence of a character in an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga7d3f44053118699084e94f1e8493c787" title="Return the position of the first occurrence of a character in an M-text.">mtext_chr()</a> function searches M-text <b>mt</b> for character <b>c</b>. The search starts from the beginning of <b>mt</b> and goes toward the end.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>c</b> is found, <a class="el" href="group__m17nMtext.html#ga7d3f44053118699084e94f1e8493c787" title="Return the position of the first occurrence of a character in an M-text.">mtext_chr()</a> returns its position; otherwise it returns -1.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gabb69a4f045cb215091e8cb02f491f4fd" title="Return the position of the last occurrence of a character in an M-text.">mtext_rchr()</a>, <a class="el" href="group__m17nMtext.html#ga8b8d4053c6c7bc47507bad39f3d332f2" title="Search a character in an M-text.">mtext_character()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gabb69a4f045cb215091e8cb02f491f4fd"></a><!-- doxytag: member="mtext.c::mtext_rchr" ref="gabb69a4f045cb215091e8cb02f491f4fd" args="(MText *mt, int c)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_rchr </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>c</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the position of the last occurrence of a character in an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#gabb69a4f045cb215091e8cb02f491f4fd" title="Return the position of the last occurrence of a character in an M-text.">mtext_rchr()</a> function searches M-text <b>mt</b> for character <b>c</b>. The search starts from the end of <b>mt</b> and goes backwardly toward the beginning.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>c</b> is found, <a class="el" href="group__m17nMtext.html#gabb69a4f045cb215091e8cb02f491f4fd" title="Return the position of the last occurrence of a character in an M-text.">mtext_rchr()</a> returns its position; otherwise it returns -1.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga7d3f44053118699084e94f1e8493c787" title="Return the position of the first occurrence of a character in an M-text.">mtext_chr()</a>, <a class="el" href="group__m17nMtext.html#ga8b8d4053c6c7bc47507bad39f3d332f2" title="Search a character in an M-text.">mtext_character()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaf2d025d985da7b4f98d07c81fdd500cb"></a><!-- doxytag: member="mtext.c::mtext_cmp" ref="gaf2d025d985da7b4f98d07c81fdd500cb" args="(MText *mt1, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_cmp </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare two M-texts character-by-character. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a> function compares M-texts <b>mt1</b> and <b>mt2</b> character by character.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns 1, 0, or -1 if <b>mt1</b> is found greater than, equal to, or less than <b>mt2</b>, respectively. Comparison is based on character codes.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga23fa60794f929caca8c73abebac241cf" title="Compare initial parts of two M-texts character-by-character.">mtext_ncmp()</a>, <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a>, <a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9" title="Compare initial parts of two M-texts ignoring cases.">mtext_ncasecmp()</a>, <a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434" title="Compare specified regions of two M-texts.">mtext_compare()</a>, <a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5" title="Compare specified regions of two M-texts ignoring cases.">mtext_case_compare()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga23fa60794f929caca8c73abebac241cf"></a><!-- doxytag: member="mtext.c::mtext_ncmp" ref="ga23fa60794f929caca8c73abebac241cf" args="(MText *mt1, MText *mt2, int n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_ncmp </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>n</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare initial parts of two M-texts character-by-character. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga23fa60794f929caca8c73abebac241cf" title="Compare initial parts of two M-texts character-by-character.">mtext_ncmp()</a> function is similar to <a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, but compares at most <b>n</b> characters from the beginning.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns 1, 0, or -1 if <b>mt1</b> is found greater than, equal to, or less than <b>mt2</b>, respectively.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a>, <a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9" title="Compare initial parts of two M-texts ignoring cases.">mtext_ncasecmp()</a> <a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434" title="Compare specified regions of two M-texts.">mtext_compare()</a>, <a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5" title="Compare specified regions of two M-texts ignoring cases.">mtext_case_compare()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaf514b386c0d6469ed56e7806901d2434"></a><!-- doxytag: member="mtext.c::mtext_compare" ref="gaf514b386c0d6469ed56e7806901d2434" args="(MText *mt1, int from1, int to1, MText *mt2, int from2, int to2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare specified regions of two M-texts. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434" title="Compare specified regions of two M-texts.">mtext_compare()</a> function compares two M-texts <b>mt1</b> and <b>mt2</b>, character-by-character. The compared regions are between <b>from1</b> and <b>to1</b> in <b>mt1</b> and <b>from2</b> to <b>to2</b> in MT2. <b>from1</b> and <b>from2</b> are inclusive, <b>to1</b> and <b>to2</b> are exclusive. <b>from1</b> being equal to <b>to1</b> (or <b>from2</b> being equal to <b>to2</b>) means an M-text of length zero. An invalid region specification is regarded as both <b>from1</b> and <b>to1</b> (or <b>from2</b> and <b>to2</b>) being 0.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns 1, 0, or -1 if <b>mt1</b> is found greater than, equal to, or less than <b>mt2</b>, respectively. Comparison is based on character codes.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, <a class="el" href="group__m17nMtext.html#ga23fa60794f929caca8c73abebac241cf" title="Compare initial parts of two M-texts character-by-character.">mtext_ncmp()</a>, <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a>, <a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9" title="Compare initial parts of two M-texts ignoring cases.">mtext_ncasecmp()</a>, <a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5" title="Compare specified regions of two M-texts ignoring cases.">mtext_case_compare()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaaa4ce420a94b2e407ad388fc9141af7a"></a><!-- doxytag: member="mtext.c::mtext_spn" ref="gaaa4ce420a94b2e407ad388fc9141af7a" args="(MText *mt, MText *accept)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_spn </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>accept</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Search an M-text for a set of characters. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaaa4ce420a94b2e407ad388fc9141af7a" title="Search an M-text for a set of characters.">mtext_spn()</a> function returns the length of the initial segment of M-text <b>mt1</b> that consists entirely of characters in M-text <b>mt2</b>.</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gad4ed9687e60b2cb6f363b244bb756ac8" title="Search an M-text for the complement of a set of characters.">mtext_cspn()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gad4ed9687e60b2cb6f363b244bb756ac8"></a><!-- doxytag: member="mtext.c::mtext_cspn" ref="gad4ed9687e60b2cb6f363b244bb756ac8" args="(MText *mt, MText *reject)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_cspn </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>reject</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Search an M-text for the complement of a set of characters. </p>
<p>The <a class="el" href="group__m17nMtext.html#gad4ed9687e60b2cb6f363b244bb756ac8" title="Search an M-text for the complement of a set of characters.">mtext_cspn()</a> returns the length of the initial segment of M-text <b>mt1</b> that consists entirely of characters not in M-text <b>mt2</b>.</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaaa4ce420a94b2e407ad388fc9141af7a" title="Search an M-text for a set of characters.">mtext_spn()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga9f1ba03d5415f9161c02bc02c5341323"></a><!-- doxytag: member="mtext.c::mtext_pbrk" ref="ga9f1ba03d5415f9161c02bc02c5341323" args="(MText *mt, MText *accept)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_pbrk </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>accept</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Search an M-text for any of a set of characters. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga9f1ba03d5415f9161c02bc02c5341323" title="Search an M-text for any of a set of characters.">mtext_pbrk()</a> function locates the first occurrence in M-text <b>mt1</b> of any of the characters in M-text <b>mt2</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns the position in <b>mt1</b> of the found character. If no such character is found, it returns -1. </dd></dl>
</div>
</div>
<a class="anchor" id="gab9ba74b25f75a7395d237f98d43fc50f"></a><!-- doxytag: member="mtext.c::mtext_tok" ref="gab9ba74b25f75a7395d237f98d43fc50f" args="(MText *mt, MText *delim, int *pos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* mtext_tok </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>delim</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"> <em>pos</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Look for a token in an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#gab9ba74b25f75a7395d237f98d43fc50f" title="Look for a token in an M-text.">mtext_tok()</a> function searches a token that firstly occurs after position <b>pos</b> in M-text <b>mt</b>. Here, a token means a substring each of which does not appear in M-text <b>delim</b>. Note that the type of <b>pos</b> is not <code>int</code> but pointer to <code>int</code>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If a token is found, <a class="el" href="group__m17nMtext.html#gab9ba74b25f75a7395d237f98d43fc50f" title="Look for a token in an M-text.">mtext_tok()</a> copies the corresponding part of <b>mt</b> and returns a pointer to the copy. In this case, <b>pos</b> is set to the end of the found token. If no token is found, it returns <code>NULL</code> without changing the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>. If an error is detected, it returns <code>NULL</code> and assigns an error code to the external variable <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a>.</dd></dl>
<dl class="user"><dt><b>Errors:</b></dt><dd><code>MERROR_RANGE</code> </dd></dl>
</div>
</div>
<a class="anchor" id="gaa8d53b235cd63fb544fa868c8dd00319"></a><!-- doxytag: member="mtext.c::mtext_text" ref="gaa8d53b235cd63fb544fa868c8dd00319" args="(MText *mt1, int pos, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_text </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Locate an M-text in another. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaa8d53b235cd63fb544fa868c8dd00319" title="Locate an M-text in another.">mtext_text()</a> function finds the first occurrence of M-text <b>mt2</b> in M-text <b>mt1</b> after the position <b>pos</b> while ignoring difference of the text properties.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>mt2</b> is found in <b>mt1</b>, <a class="el" href="group__m17nMtext.html#gaa8d53b235cd63fb544fa868c8dd00319" title="Locate an M-text in another.">mtext_text()</a> returns the position of it first occurrence. Otherwise it returns -1. If <b>mt2</b> is empty, it returns 0. </dd></dl>
</div>
</div>
<a class="anchor" id="gaa2328a6f85eb2f1f0cdbb51c1e09d294"></a><!-- doxytag: member="mtext.c::mtext_search" ref="gaa2328a6f85eb2f1f0cdbb51c1e09d294" args="(MText *mt1, int from, int to, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_search </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Locate an M-text in a specific range of another. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaa2328a6f85eb2f1f0cdbb51c1e09d294" title="Locate an M-text in a specific range of another.">mtext_search()</a> function searches for the first occurrence of M-text <b>mt2</b> in M-text <b>mt1</b> in the region <b>from</b> and <b>to</b> while ignoring difference of the text properties. If <b>from</b> is less than <b>to</b>, the forward search starts from <b>from</b>, otherwise the backward search starts from <b>to</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>mt2</b> is found in <b>mt1</b>, <a class="el" href="group__m17nMtext.html#gaa2328a6f85eb2f1f0cdbb51c1e09d294" title="Locate an M-text in a specific range of another.">mtext_search()</a> returns the position of the first occurrence. Otherwise it returns -1. If <b>mt2</b> is empty, it returns 0. </dd></dl>
</div>
</div>
<a class="anchor" id="gabc63537384fb25bccd996e35a9bbc908"></a><!-- doxytag: member="mtext.c::mtext_casecmp" ref="gabc63537384fb25bccd996e35a9bbc908" args="(MText *mt1, MText *mt2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_casecmp </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare two M-texts ignoring cases. </p>
<p>The <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a> function is similar to <a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, but ignores cases on comparison.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns 1, 0, or -1 if <b>mt1</b> is found greater than, equal to, or less than <b>mt2</b>, respectively.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, <a class="el" href="group__m17nMtext.html#ga23fa60794f929caca8c73abebac241cf" title="Compare initial parts of two M-texts character-by-character.">mtext_ncmp()</a>, <a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9" title="Compare initial parts of two M-texts ignoring cases.">mtext_ncasecmp()</a> <a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434" title="Compare specified regions of two M-texts.">mtext_compare()</a>, <a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5" title="Compare specified regions of two M-texts ignoring cases.">mtext_case_compare()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga9b232386c4307b95dd42685236dc3ce9"></a><!-- doxytag: member="mtext.c::mtext_ncasecmp" ref="ga9b232386c4307b95dd42685236dc3ce9" args="(MText *mt1, MText *mt2, int n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_ncasecmp </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>n</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare initial parts of two M-texts ignoring cases. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9" title="Compare initial parts of two M-texts ignoring cases.">mtext_ncasecmp()</a> function is similar to <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a>, but compares at most <b>n</b> characters from the beginning.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns 1, 0, or -1 if <b>mt1</b> is found greater than, equal to, or less than <b>mt2</b>, respectively.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a>, <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a> <a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434" title="Compare specified regions of two M-texts.">mtext_compare()</a>, <a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5" title="Compare specified regions of two M-texts ignoring cases.">mtext_case_compare()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga250784b22861845abac509f0d8324be5"></a><!-- doxytag: member="mtext.c::mtext_case_compare" ref="ga250784b22861845abac509f0d8324be5" args="(MText *mt1, int from1, int to1, MText *mt2, int from2, int to2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_case_compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>from2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>to2</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare specified regions of two M-texts ignoring cases. </p>
<p>The <a class="el" href="group__m17nMtext.html#ga250784b22861845abac509f0d8324be5" title="Compare specified regions of two M-texts ignoring cases.">mtext_case_compare()</a> function compares two M-texts <b>mt1</b> and <b>mt2</b>, character-by-character, ignoring cases. The compared regions are between <b>from1</b> and <b>to1</b> in <b>mt1</b> and <b>from2</b> to <b>to2</b> in MT2. <b>from1</b> and <b>from2</b> are inclusive, <b>to1</b> and <b>to2</b> are exclusive. <b>from1</b> being equal to <b>to1</b> (or <b>from2</b> being equal to <b>to2</b>) means an M-text of length zero. An invalid region specification is regarded as both <b>from1</b> and <b>to1</b> (or <b>from2</b> and <b>to2</b>) being 0.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns 1, 0, or -1 if <b>mt1</b> is found greater than, equal to, or less than <b>mt2</b>, respectively. Comparison is based on character codes.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gaf2d025d985da7b4f98d07c81fdd500cb" title="Compare two M-texts character-by-character.">mtext_cmp()</a>, <a class="el" href="group__m17nMtext.html#ga23fa60794f929caca8c73abebac241cf" title="Compare initial parts of two M-texts character-by-character.">mtext_ncmp()</a>, <a class="el" href="group__m17nMtext.html#gabc63537384fb25bccd996e35a9bbc908" title="Compare two M-texts ignoring cases.">mtext_casecmp()</a>, <a class="el" href="group__m17nMtext.html#ga9b232386c4307b95dd42685236dc3ce9" title="Compare initial parts of two M-texts ignoring cases.">mtext_ncasecmp()</a>, <a class="el" href="group__m17nMtext.html#gaf514b386c0d6469ed56e7806901d2434" title="Compare specified regions of two M-texts.">mtext_compare()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gab2a252c7ef64c168467475f0e4ffe072"></a><!-- doxytag: member="mtext.c::mtext_lowercase" ref="gab2a252c7ef64c168467475f0e4ffe072" args="(MText *mt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_lowercase </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Lowercase an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#gab2a252c7ef64c168467475f0e4ffe072" title="Lowercase an M-text.">mtext_lowercase()</a> function destructively converts each character in M-text <b>mt</b> to lowercase. Adjacent characters in <b>mt</b> may affect the case conversion. If the Mlanguage text property is attached to <b>mt</b>, it may also affect the conversion. The length of <b>mt</b> may change. Characters that cannot be converted to lowercase is left unchanged. All the text properties are inherited.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns the length of the updated <b>mt</b>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gabca0474405604234294cc5a4e341ca18" title="Titlecase an M-text.">mtext_titlecase()</a>, <a class="el" href="group__m17nMtext.html#gaf8dbb06e910d0f87dbb53d4426977d4f" title="Uppercase an M-text.">mtext_uppercase()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gabca0474405604234294cc5a4e341ca18"></a><!-- doxytag: member="mtext.c::mtext_titlecase" ref="gabca0474405604234294cc5a4e341ca18" args="(MText *mt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_titlecase </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Titlecase an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#gabca0474405604234294cc5a4e341ca18" title="Titlecase an M-text.">mtext_titlecase()</a> function destructively converts the first character with the cased property in M-text <b>mt</b> to titlecase and the others to lowercase. The length of <b>mt</b> may change. If the character cannot be converted to titlecase, it is left unchanged. All the text properties are inherited.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns the length of the updated <b>mt</b>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gab2a252c7ef64c168467475f0e4ffe072" title="Lowercase an M-text.">mtext_lowercase()</a>, <a class="el" href="group__m17nMtext.html#gaf8dbb06e910d0f87dbb53d4426977d4f" title="Uppercase an M-text.">mtext_uppercase()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaf8dbb06e910d0f87dbb53d4426977d4f"></a><!-- doxytag: member="mtext.c::mtext_uppercase" ref="gaf8dbb06e910d0f87dbb53d4426977d4f" args="(MText *mt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int mtext_uppercase </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> * </td>
<td class="paramname"> <em>mt</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Uppercase an M-text. </p>
<p>The <a class="el" href="group__m17nMtext.html#gaf8dbb06e910d0f87dbb53d4426977d4f" title="Uppercase an M-text.">mtext_uppercase()</a> function destructively converts each character in M-text <b>mt</b> to uppercase. Adjacent characters in <b>mt</b> may affect the case conversion. If the Mlanguage text property is attached to <b>mt</b>, it may also affect the conversion. The length of <b>mt</b> may change. Characters that cannot be converted to uppercase is left unchanged. All the text properties are inherited.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>This function returns the length of the updated <b>mt</b>.</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#gab2a252c7ef64c168467475f0e4ffe072" title="Lowercase an M-text.">mtext_lowercase()</a>, <a class="el" href="group__m17nMtext.html#gabca0474405604234294cc5a4e341ca18" title="Titlecase an M-text.">mtext_titlecase()</a> </dd></dl>
</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="ga985ecc7ae135b77919af483d12d4d337"></a><!-- doxytag: member="m17n-core.h::MTEXT_FORMAT_UTF_16" ref="ga985ecc7ae135b77919af483d12d4d337" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__m17nMtext.html#ga4148a7a6fd502d4fb4a786d9fdb7da59">MTextFormat</a> <a class="el" href="group__m17nMtext.html#ga985ecc7ae135b77919af483d12d4d337">MTEXT_FORMAT_UTF_16</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Variable of value MTEXT_FORMAT_UTF_16LE or MTEXT_FORMAT_UTF_16BE. </p>
<p>The global variable <a class="el" href="group__m17nMtext.html#ga985ecc7ae135b77919af483d12d4d337" title="Variable of value MTEXT_FORMAT_UTF_16LE or MTEXT_FORMAT_UTF_16BE.">MTEXT_FORMAT_UTF_16</a> is initialized to <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a42252ef5d95a78cc719768d0fa3ce209">MTEXT_FORMAT_UTF_16LE</a> on a "Little Endian" system (storing words with the least significant byte first), and to <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59aab2d4798020fd8edb35089be48170cee">MTEXT_FORMAT_UTF_16BE</a> on a "Big Endian" system (storing words with the most significant byte first).</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga2114a8366b5aaee6b5d344f69ea5dd78" title="Allocate a new M-text with specified data.">mtext_from_data()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga3e3b72f642ea80b03cf0644325fccfbe"></a><!-- doxytag: member="m17n-core.h::MTEXT_FORMAT_UTF_32" ref="ga3e3b72f642ea80b03cf0644325fccfbe" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int <a class="el" href="group__m17nMtext.html#ga3e3b72f642ea80b03cf0644325fccfbe">MTEXT_FORMAT_UTF_32</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Variable of value MTEXT_FORMAT_UTF_32LE or MTEXT_FORMAT_UTF_32BE. </p>
<p>The global variable <a class="el" href="group__m17nMtext.html#ga3e3b72f642ea80b03cf0644325fccfbe" title="Variable of value MTEXT_FORMAT_UTF_32LE or MTEXT_FORMAT_UTF_32BE.">MTEXT_FORMAT_UTF_32</a> is initialized to <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a79785b67787c6ca1e9c415a2d76df1be">MTEXT_FORMAT_UTF_32LE</a> on a "Little Endian" system (storing words with the least significant byte first), and to <a class="el" href="group__m17nMtext.html#gga4148a7a6fd502d4fb4a786d9fdb7da59a07b67ef89723794acb1ba743a30a79ef">MTEXT_FORMAT_UTF_32BE</a> on a "Big Endian" system (storing words with the most significant byte first).</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nMtext.html#ga2114a8366b5aaee6b5d344f69ea5dd78" title="Allocate a new M-text with specified data.">mtext_from_data()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga32374f3750874ea0142af8dac831ab25"></a><!-- doxytag: member="mtext.c::Mlanguage" ref="ga32374f3750874ea0142af8dac831ab25" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nMtext.html#ga32374f3750874ea0142af8dac831ab25">Mlanguage</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The symbol whose name is "language". </p>
</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr>
<ADDRESS>
<a href="http://www.m17n.org/m17n-lib-en/index.html" target="mulewindow"><img src="parrot.png" align=bottom alt="m17n-lib Home" border=0></a>
</ADDRESS>
</body>
</HTML>
<!-- Copyright information
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011
National Institute of Advanced Industrial Science and Technology (AIST)
This file is part of the m17n library documentation.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Section, no Front-Cover Texts,
and no Back-Cover Texts. A copy of the license is included in the
appendix entitled "GNU Free Documentation License".
-->
|