summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSOrthography.inc
blob: 067875c955f38788329aa8a733fc18d9a1838dab (plain)
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
{ Parsed from Foundation.framework NSOrthography.h }
{ Version: 2.1.2 - Wed Dec 8 10:06:43 CET 2010 }


{$ifdef TYPES}
{$ifndef NSORTHOGRAPHY_PAS_T}
{$define NSORTHOGRAPHY_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSORTHOGRAPHY_PAS_R}
{$define NSORTHOGRAPHY_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSORTHOGRAPHY_PAS_F}
{$define NSORTHOGRAPHY_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSORTHOGRAPHY_PAS_S}
{$define NSORTHOGRAPHY_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSOrthography = objcclass;
  NSOrthographyPointer = ^NSOrthography;
  NSOrthographyPtr = NSOrthographyPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSORTHOGRAPHY_PAS_C}
{$define NSORTHOGRAPHY_PAS_C}

{ NSOrthography }
  NSOrthography = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
    
  public
    class function alloc: NSOrthography; message 'alloc';

    function dominantScript: NSString; message 'dominantScript';
    function languageMap: NSDictionary; message 'languageMap';

    { Adopted Protocols }
    function copyWithZone(zone_: NSZonePtr): id;
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
  end; external;

{ NSOrthographyExtendedCategory }
  NSOrthographyExtendedCategory = objccategory(NSOrthography)
    function languagesForScript(script: NSString): NSArray; message 'languagesForScript:';
    function dominantLanguageForScript(script: NSString): NSString; message 'dominantLanguageForScript:';
    function dominantLanguage: NSString; message 'dominantLanguage';
    function allScripts: NSArray; message 'allScripts';
    function allLanguages: NSArray; message 'allLanguages';
  end; external;

{ NSOrthographyCreationCategory }
  NSOrthographyCreationCategory = objccategory(NSOrthography)
    class function orthographyWithDominantScript_languageMap(script: NSString; map: NSDictionary): id; message 'orthographyWithDominantScript:languageMap:';
    function initWithDominantScript_languageMap(script: NSString; map: NSDictionary): id; message 'initWithDominantScript:languageMap:';
  end; external;

{$endif}
{$endif}