Mercurial > projects > dstep
comparison dstep/coreservices/carboncore/StringCompare.d @ 11:07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 01 Aug 2009 15:03:28 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:27e00625790b | 11:07194b026fa4 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Jul 21, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coreservices.carboncore.StringCompare; | |
8 | |
9 //import dstep.AvailabilityMacros; | |
10 import dstep.coreservices.carboncore.MacTypes; | |
11 import dstep.coreservices.carboncore.MixedMode; | |
12 import dstep.coreservices.carboncore.Script; | |
13 import dstep.coreservices.carboncore.TextCommon; | |
14 import dstep.internal.Version; | |
15 | |
16 enum | |
17 { | |
18 systemCurLang = -2, | |
19 systemDefLang = -3, | |
20 currentCurLang = -4, | |
21 currentDefLang = -5, | |
22 scriptCurLang = -6, | |
23 scriptDefLang = -7 | |
24 } | |
25 | |
26 enum | |
27 { | |
28 iuSystemCurLang = systemCurLang, | |
29 iuSystemDefLang = systemDefLang, | |
30 iuCurrentCurLang = currentCurLang, | |
31 iuCurrentDefLang = currentDefLang, | |
32 iuScriptCurLang = scriptCurLang, | |
33 iuScriptDefLang = scriptDefLang | |
34 } | |
35 | |
36 static if (!D_LP64): | |
37 extern (C): | |
38 | |
39 short MacReplaceText (Handle baseText, Handle substitutionText, Str15 key); | |
40 short ScriptOrder (ScriptCode script1, ScriptCode script2); | |
41 short MacCompareString (ConstStr255Param aStr, ConstStr255Param bStr, Handle itl2Handle); | |
42 short IdenticalString (ConstStr255Param aStr, ConstStr255Param bStr, Handle itl2Handle); | |
43 short StringOrder (ConstStr255Param aStr, ConstStr255Param bStr, ScriptCode aScript, ScriptCode bScript, LangCode aLang, LangCode bLang); | |
44 short CompareText (/*const*/ void* aPtr, /*const*/ void* bPtr, short aLen, short bLen, Handle itl2Handle); | |
45 short IdenticalText (/*const*/ void* aPtr, /*const*/ void* bPtr, short aLen, short bLen, Handle itl2Handle); | |
46 short TextOrder (/*const*/ void* aPtr, /*const*/ void* bPtr, short aLen, short bLen, ScriptCode aScript, ScriptCode bScript, LangCode aLang, LangCode bLang); | |
47 short LanguageOrder (LangCode language1, LangCode language2); | |
48 short RelString (ConstStr255Param str1, ConstStr255Param str2, bool caseSensitive, bool diacSensitive); | |
49 bool EqualString (ConstStr255Param str1, ConstStr255Param str2, bool caseSensitive, bool diacSensitive); | |
50 short relstring (/*const*/ char* str1, /*const*/ char* str2, bool caseSensitive, bool diacSensitive); |