~ubuntu-branches/debian/experimental/cuneiform/experimental

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/hhh/tigerh/h/strings.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-10 17:58:10 UTC
  • Revision ID: james.westby@ubuntu.com-20090710175810-rqc89d2i3tki9m89
Tags: upstream-0.7.0+dfsg
Import upstream version 0.7.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 1993-2008, Cognitive Technologies
 
3
All rights reserved.
 
4
 
 
5
����������� ��������� ��������������� � ������������� ��� � ���� ��������� ����,
 
6
��� � � �������� �����, � ����������� ��� ���, ��� ���������� ��������� �������:
 
7
 
 
8
      * ��� ��������� ��������������� ��������� ���� ������ ���������� ���������
 
9
        ���� ����������� �� ��������� �����, ���� ������ ������� � �����������
 
10
        ����� �� ��������.
 
11
      * ��� ��������� ��������������� ��������� ���� � ������������ �/��� �
 
12
        ������ ����������, ������������ ��� ���������������, ������ �����������
 
13
        ��������� ���� ���������� �� ��������� �����, ���� ������ ������� �
 
14
        ����������� ����� �� ��������.
 
15
      * �� �������� Cognitive Technologies, �� ����� �� ����������� �� �����
 
16
        ���� ������������ � �������� �������� ��������� �/��� �����������
 
17
        ���������, ���������� �� ���� ��, ��� ���������������� �����������
 
18
        ����������.
 
19
 
 
20
��� ��������� ������������� ����������� ��������� ���� �/��� ������� ������ "���
 
21
��� ����" ��� ������-���� ���� ��������, ���������� ���� ��� ���������������,
 
22
������� �������� ������������ �������� � ����������� ��� ���������� ����, �� ��
 
23
������������� ���. �� �������� ��������� ���� � �� ���� ������ ����, �������
 
24
����� �������� �/��� �������� �������������� ���������, �� � ���� ������ ��
 
25
��Ѩ� ���������������, ������� ����� �����, ���������, ����������� ���
 
26
������������� ������, ��������� � �������������� ��� ���������� ����������
 
27
������������� ������������� ��������� (������� ������ ������, ��� ������,
 
28
������� ���������, ��� ������ �/��� ������ �������, ���������� ��-�� ��������
 
29
������� ��� �/��� ������ ��������� �������� ��������� � ������� �����������,
 
30
�� �� ������������� ����� ��������), �� �� ������������� ���, ���� ���� �����
 
31
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
 
32
 
 
33
Redistribution and use in source and binary forms, with or without modification,
 
34
are permitted provided that the following conditions are met:
 
35
 
 
36
    * Redistributions of source code must retain the above copyright notice,
 
37
      this list of conditions and the following disclaimer.
 
38
    * Redistributions in binary form must reproduce the above copyright notice,
 
39
      this list of conditions and the following disclaimer in the documentation
 
40
      and/or other materials provided with the distribution.
 
41
    * Neither the name of the Cognitive Technologies nor the names of its
 
42
      contributors may be used to endorse or promote products derived from this
 
43
      software without specific prior written permission.
 
44
 
 
45
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 
46
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
47
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
48
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 
49
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
50
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
51
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
52
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 
53
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
54
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
55
*/
 
56
 
 
57
/*
 
58
  ������������������������������������������������������������������
 
59
  ��                                                              ��
 
60
  ��     Copyright (C) 1990 Cognitive Technology Corporation.     ��
 
61
  ��     All rights reserved. This program is proprietary and     ��
 
62
  ��     a trade secret of Cognitive Technology Corporation.      ��
 
63
  ��                                                              ��
 
64
  ������������������������������������������������������������������
 
65
*/
 
66
 
 
67
/****************************************************************************
 
68
 *                                                                          *
 
69
 *                                                                          *
 
70
 *              S T R I N G S   E X T R A C T I O N                         *
 
71
 *                                                                          *
 
72
 *              Written in 1991 by Yuri Panchul                             *
 
73
 *                                                                          *
 
74
 *              STRINGS.H - the header file                                 *
 
75
 *                                                                          *
 
76
 ***************************************************************************/
 
77
 
 
78
# ifndef __STRINGS_H_INCLUDE
 
79
# define __STRINGS_H_INCLUDE
 
80
 
 
81
# include "ltconfig.h"
 
82
# include "c_types.h"
 
83
 
 
84
struct _String;
 
85
typedef struct _String STRING;
 
86
 
 
87
/* Flags of string */
 
88
 
 
89
# define SF_NULL                       0x00
 
90
 
 
91
/* Internal flags */
 
92
 
 
93
# define SF_RECT_ACCOUNTED             0x01
 
94
# define SF_REPRESENTATION_ACCOUNTED   0x02
 
95
# define SF_NEED_UPDATE                0x04
 
96
# define SF_NEED_DELETE                0x08
 
97
# define SF_DONT_VBREAK                0x10
 
98
 
 
99
/* External flags */
 
100
 
 
101
# define SF_SPECIAL                    0x20
 
102
# define SF_VERTCUT                    0x40
 
103
 
 
104
struct _String
 
105
       {
 
106
           STRING *pNext;
 
107
           STRING *pPrev;
 
108
 
 
109
           STRING *pUp;
 
110
           STRING *pDown;
 
111
 
 
112
           unsigned uFlags;
 
113
           BYTE     language; // Pit 02-??-94
 
114
           int      nBlock;
 
115
           int      nUserNum;// Piter 08-17-95 06:18pm
 
116
 
 
117
           int      xLeft;
 
118
           int      yTop;
 
119
           int      xRight;
 
120
           int      yBottom;
 
121
 
 
122
           WORD     wFirst;
 
123
           WORD     wLast;
 
124
 
 
125
           int      *pLettersList;
 
126
           int      nLetters;
 
127
 
 
128
           int      *pDustList;
 
129
           int      nDust;
 
130
 
 
131
           int      nRecognized;
 
132
           int      nSpecialsLetters;
 
133
 
 
134
           int      nMiddleHeight;
 
135
 
 
136
           int      yMiddleTop;
 
137
           int      yMiddleLine;
 
138
           int      yMiddleBottom;
 
139
 
 
140
           int      nTopDispersion;
 
141
           int      nBottomDispersion;
 
142
 
 
143
           int      yMin;
 
144
           int      yMax;
 
145
       };
 
146
 
 
147
# define String Tiger_String
 
148
 
 
149
extern STRING String;
 
150
extern BOOL bNeedFreeString;
 
151
 
 
152
extern STRING *pStringsList;
 
153
extern STRING *pStringsListEnd;
 
154
extern STRING *pStringsUpList;
 
155
extern STRING *pStringsDownList;
 
156
# endif