aspelltypes.inc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. type
  2. PAspellCanHaveError = Pointer;
  3. PAspellConfig = Pointer;
  4. PAspellDictInfoEnumeration = Pointer;
  5. PAspellDictInfoList = Pointer;
  6. PAspellDocumentChecker = Pointer;
  7. PAspellFilter = Pointer;
  8. PAspellKeyInfoEnumeration = Pointer;
  9. PAspellModuleInfoEnumeration = Pointer;
  10. PAspellModuleInfoList = Pointer;
  11. PAspellMutableContainer = Pointer;
  12. PAspellSpeller = Pointer;
  13. PAspellStringEnumeration = Pointer;
  14. PAspellStringList = Pointer;
  15. PAspellStringMap = Pointer;
  16. PAspellStringPairEnumeration = Pointer;
  17. PAspellWordList = Pointer;
  18. {****************************** type id ****************************** }
  19. type
  20. PAspellTypeId = ^AspellTypeId;
  21. AspellTypeId = record
  22. case longint of
  23. 0 : ( num : cuint );
  24. 1 : ( str : array[0..3] of char );
  25. end;
  26. {****************************** key info ****************************** }
  27. PAspellKeyInfoType = ^AspellKeyInfoType;
  28. AspellKeyInfoType = (AspellKeyInfoString,AspellKeyInfoInt,
  29. AspellKeyInfoBool,AspellKeyInfoList
  30. );
  31. { A brief description of the key or NULL if internal value. }
  32. PAspellKeyInfo = ^AspellKeyInfo;
  33. AspellKeyInfo = record
  34. name : pchar;
  35. _type : AspellKeyInfoType;
  36. def : pchar;
  37. desc : pchar;
  38. flags : cint;
  39. other_data : cint;
  40. end;
  41. {****************************** error ****************************** }
  42. PAspellErrorInfo = ^AspellErrorInfo;
  43. AspellErrorInfo = record
  44. isa : PAspellErrorInfo;
  45. mesg : pchar;
  46. num_parms : cuint;
  47. parms : array[0..2] of pchar;
  48. end;
  49. PAspellError = ^AspellError;
  50. AspellError = record
  51. mesg : pchar;
  52. err : PAspellErrorInfo;
  53. end;
  54. {****************************** token ****************************** }
  55. PAspellToken = ^AspellToken;
  56. AspellToken = record
  57. offset : cuint;
  58. len : cuint;
  59. end;
  60. {*************************** module/dict *************************** }
  61. PAspellModuleInfo = ^AspellModuleInfo;
  62. AspellModuleInfo = record
  63. name : pchar;
  64. order_num : double;
  65. lib_dir : pchar;
  66. dict_dirs : PAspellStringList;
  67. dict_exts : PAspellStringList;
  68. end;
  69. { The Name to identify this dictionary by. }
  70. { The language code to identify this dictionary.
  71. * A two letter UPPER-CASE ISO 639 language code
  72. * and an optional two letter ISO 3166 country
  73. * code after a dash or underscore. }
  74. { Any extra information to distinguish this
  75. * variety of dictionary from other dictionaries
  76. * which may have the same language and size. }
  77. { A two char digit code describing the size of
  78. * the dictionary: 10=tiny, 20=really small,
  79. * 30=small, 40=med-small, 50=med, 60=med-large,
  80. * 70=large, 80=huge, 90=insane. Please check
  81. * the README in aspell-lang-200?????.tar.bz2 or
  82. * see SCOWL (http://wordlist.sourceforge.net)
  83. * for an example of how these sizes are used. }
  84. PAspellDictInfo = ^AspellDictInfo;
  85. AspellDictInfo = record
  86. name : pchar;
  87. code : pchar;
  88. jargon : pchar;
  89. size : cint;
  90. size_str : pchar;
  91. module : PAspellModuleInfo;
  92. end;
  93. {**************************** string pair **************************** }
  94. PAspellStringPair = ^AspellStringPair;
  95. AspellStringPair = record
  96. first : pchar;
  97. second : pchar;
  98. end;