Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7fb83327
Kaydet (Commit)
7fb83327
authored
Nis 12, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid reserved identifiers
Change-Id: Iac8e8e78c3a3f58e8a45b1f28b7d3bb884dd817e
üst
d74faef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
inputsequencechecker_hi.cxx
i18npool/source/inputchecker/inputsequencechecker_hi.cxx
+31
-31
No files found.
i18npool/source/inputchecker/inputsequencechecker_hi.cxx
Dosyayı görüntüle @
7fb83327
...
@@ -35,24 +35,24 @@ InputSequenceChecker_hi::~InputSequenceChecker_hi()
...
@@ -35,24 +35,24 @@ InputSequenceChecker_hi::~InputSequenceChecker_hi()
{
{
}
}
/* Non-Defined Class type */
/* Non-Defined Class type */
#define
__ND
0
#define
ND_
0
/*
/*
* Devanagari character type definitions
* Devanagari character type definitions
*/
*/
#define
__UP
1 // ChandraBindu & Anuswar
#define
UP_
1 // ChandraBindu & Anuswar
#define
__NP
2 // Visarg
#define
NP_
2 // Visarg
#define
__IV
3 // Independent Vowels
#define
IV_
3 // Independent Vowels
#define
__CN
4 // Consonants except _CK & _RC
#define
CN_
4 // Consonants except _CK & _RC
#define
__CK
5 // Consonants that can be followed by Nukta
#define
CK_
5 // Consonants that can be followed by Nukta
#define
__RC
6 // Ra
#define
RC_
6 // Ra
#define
__NM
7 // Matra
#define
NM_
7 // Matra
#define
__RM
8 // Ra + HAL
#define
RM_
8 // Ra + HAL
#define
__IM
9 // Choti I Matra
#define
IM_
9 // Choti I Matra
#define
__HL
10 // HAL
#define
HL_
10 // HAL
#define
__NK
11 // Nukta
#define
NK_
11 // Nukta
#define
__VD
12 // Vedic
#define
VD_
12 // Vedic
#define
__HD
13 // Hindu Numerals
#define
HD_
13 // Hindu Numerals
/*
/*
* Devanagari character type table
* Devanagari character type table
...
@@ -60,22 +60,22 @@ InputSequenceChecker_hi::~InputSequenceChecker_hi()
...
@@ -60,22 +60,22 @@ InputSequenceChecker_hi::~InputSequenceChecker_hi()
static
const
sal_uInt16
devaCT
[
128
]
=
{
static
const
sal_uInt16
devaCT
[
128
]
=
{
/* 0, 1, 2, 3, 4, 5, 6, 7,
/* 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, A, B, C, D, E, F, */
8, 9, A, B, C, D, E, F, */
/* 0900 */
__ND
,
__UP
,
__UP
,
__NP
,
__ND
,
__IV
,
__IV
,
__IV
,
/* 0900 */
ND_
,
UP_
,
UP_
,
NP_
,
ND_
,
IV_
,
IV_
,
IV_
,
__IV
,
__IV
,
__IV
,
__IV
,
__IV
,
__IV
,
__IV
,
__IV
,
IV_
,
IV_
,
IV_
,
IV_
,
IV_
,
IV_
,
IV_
,
IV_
,
/* 0910 */
__IV
,
__IV
,
__IV
,
__IV
,
__IV
,
__CK
,
__CK
,
__CK
,
/* 0910 */
IV_
,
IV_
,
IV_
,
IV_
,
IV_
,
CK_
,
CK_
,
CK_
,
__CN
,
__CN
,
__CN
,
__CN
,
__CK
,
__CN
,
__CN
,
__CN
,
CN_
,
CN_
,
CN_
,
CN_
,
CK_
,
CN_
,
CN_
,
CN_
,
/* 0920 */
__CN
,
__CK
,
__CK
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
/* 0920 */
CN_
,
CK_
,
CK_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
__CN
,
__CN
,
__CN
,
__CK
,
__CN
,
__CN
,
__CN
,
__CN
,
CN_
,
CN_
,
CN_
,
CK_
,
CN_
,
CN_
,
CN_
,
CN_
,
/* 0930 */
__RC
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
/* 0930 */
RC_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
__CN
,
__CN
,
__ND
,
__ND
,
__NK
,
__VD
,
__NM
,
__IM
,
CN_
,
CN_
,
ND_
,
ND_
,
NK_
,
VD_
,
NM_
,
IM_
,
/* 0940 */
__RM
,
__NM
,
__NM
,
__NM
,
__NM
,
__RM
,
__RM
,
__RM
,
/* 0940 */
RM_
,
NM_
,
NM_
,
NM_
,
NM_
,
RM_
,
RM_
,
RM_
,
__RM
,
__RM
,
__RM
,
__RM
,
__RM
,
__HL
,
__ND
,
__ND
,
RM_
,
RM_
,
RM_
,
RM_
,
RM_
,
HL_
,
ND_
,
ND_
,
/* 0950 */
__ND
,
__VD
,
__VD
,
__VD
,
__VD
,
__ND
,
__ND
,
__ND
,
/* 0950 */
ND_
,
VD_
,
VD_
,
VD_
,
VD_
,
ND_
,
ND_
,
ND_
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
__CN
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
CN_
,
/* 0960 */
__IV
,
__IV
,
__NM
,
__NM
,
__ND
,
__ND
,
__HD
,
__HD
,
/* 0960 */
IV_
,
IV_
,
NM_
,
NM_
,
ND_
,
ND_
,
HD_
,
HD_
,
__HD
,
__HD
,
__HD
,
__HD
,
__HD
,
__HD
,
__HD
,
__HD
,
HD_
,
HD_
,
HD_
,
HD_
,
HD_
,
HD_
,
HD_
,
HD_
,
/* 0970 */
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
/* 0970 */
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
__ND
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
ND_
,
};
};
/*
/*
...
@@ -105,7 +105,7 @@ sal_Bool DEV_Composible[2][2] = {
...
@@ -105,7 +105,7 @@ sal_Bool DEV_Composible[2][2] = {
};
};
#define getCharType(x) \
#define getCharType(x) \
((x >= 0x0900 && x < 0x097f) ? devaCT[x - 0x0900] :
__ND
)
((x >= 0x0900 && x < 0x097f) ? devaCT[x - 0x0900] :
ND_
)
sal_Bool
SAL_CALL
sal_Bool
SAL_CALL
InputSequenceChecker_hi
::
checkInputSequence
(
const
OUString
&
Text
,
InputSequenceChecker_hi
::
checkInputSequence
(
const
OUString
&
Text
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment