comparison dwtx/dwtxhelper/mangoicu/UChar.d @ 91:11e8159caf7a

make the mango icu fork work.
author Frank Benoit <benoit@tionex.de>
date Mon, 07 Jul 2008 15:53:07 +0200
parents 040da1cb0d76
children f05207c07a98
comparison
equal deleted inserted replaced
90:7ffeace6c47f 91:11e8159caf7a
81 All trademarks and registered trademarks mentioned herein are the 81 All trademarks and registered trademarks mentioned herein are the
82 property of their respective owners. 82 property of their respective owners.
83 83
84 *******************************************************************************/ 84 *******************************************************************************/
85 85
86 module dwtx.dwthelper.mangoicu.UChar; 86 module dwtx.dwtxhelper.mangoicu.UChar;
87 87
88 private import dwtx.dwthelper.mangoicu.ICU; 88 private import dwtx.dwtxhelper.mangoicu.ICU;
89 89
90 /******************************************************************************* 90 /*******************************************************************************
91 91
92 This API provides low-level access to the Unicode Character 92 This API provides low-level access to the Unicode Character
93 Database. In addition to raw property values, some convenience 93 Database. In addition to raw property values, some convenience
670 670
671 ***********************************************************************/ 671 ***********************************************************************/
672 672
673 char[] getCharName (dchar c, CharNameChoice choice, inout char[] dst) 673 char[] getCharName (dchar c, CharNameChoice choice, inout char[] dst)
674 { 674 {
675 Error e; 675 UErrorCode e;
676 676
677 uint len = u_charName (c, choice, dst.ptr, dst.length, e); 677 uint len = u_charName (c, choice, dst.ptr, dst.length, e);
678 testError (e, "failed to extract char name (buffer too small?)"); 678 testError (e, "failed to extract char name (buffer too small?)");
679 return dst [0..len]; 679 return dst [0..len];
680 } 680 }
685 685
686 ***********************************************************************/ 686 ***********************************************************************/
687 687
688 char[] getComment (dchar c, inout char[] dst) 688 char[] getComment (dchar c, inout char[] dst)
689 { 689 {
690 Error e; 690 UErrorCode e;
691 691
692 uint len = u_getISOComment (c, dst.ptr, dst.length, e); 692 uint len = u_getISOComment (c, dst.ptr, dst.length, e);
693 testError (e, "failed to extract comment (buffer too small?)"); 693 testError (e, "failed to extract comment (buffer too small?)");
694 return dst [0..len]; 694 return dst [0..len];
695 } 695 }
701 701
702 ***********************************************************************/ 702 ***********************************************************************/
703 703
704 dchar charFromName (CharNameChoice choice, char[] name) 704 dchar charFromName (CharNameChoice choice, char[] name)
705 { 705 {
706 Error e; 706 UErrorCode e;
707 707
708 dchar c = u_charFromName (choice, toString(name), e); 708 dchar c = u_charFromName (choice, toString(name), e);
709 testError (e, "failed to locate char name"); 709 testError (e, "failed to locate char name");
710 return c; 710 return c;
711 } 711 }
1150 uint function (uint, uint) u_getIntPropertyValue; 1150 uint function (uint, uint) u_getIntPropertyValue;
1151 uint function (uint) u_getIntPropertyMinValue; 1151 uint function (uint) u_getIntPropertyMinValue;
1152 uint function (uint) u_getIntPropertyMaxValue; 1152 uint function (uint) u_getIntPropertyMaxValue;
1153 uint function (dchar) u_charDirection; 1153 uint function (dchar) u_charDirection;
1154 uint function (dchar) ublock_getCode; 1154 uint function (dchar) ublock_getCode;
1155 uint function (dchar, uint, char*, uint, inout Error) u_charName; 1155 uint function (dchar, uint, char*, uint, inout UErrorCode) u_charName;
1156 uint function (dchar, char*, uint, inout Error) u_getISOComment; 1156 uint function (dchar, char*, uint, inout UErrorCode) u_getISOComment;
1157 uint function (uint, char*, inout Error) u_charFromName; 1157 uint function (uint, char*, inout UErrorCode) u_charFromName;
1158 char* function (uint, uint) u_getPropertyName; 1158 char* function (uint, uint) u_getPropertyName;
1159 char* function (uint, uint, uint) u_getPropertyValueName; 1159 char* function (uint, uint, uint) u_getPropertyValueName;
1160 void function (inout Version) u_getUnicodeVersion; 1160 void function (inout Version) u_getUnicodeVersion;
1161 void function (dchar, inout Version) u_charAge; 1161 void function (dchar, inout Version) u_charAge;
1162 } 1162 }