-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathUGlobal.cpp
4364 lines (4228 loc) · 88.8 KB
/
UGlobal.cpp
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "ortaq.h"
#include <windows.h>
#include "UCommon.h"
#include <stdio.h>
#include <stdlib.h>
#include <io.h>
wchar_t *_resKey[RES_MAX];
wchar_t *_resVal[RES_MAX];
wchar_t _gmsgBuf[256];
int _resCnt=0;
struct QelipUnicode g_Unicode[34];
// Towendikiler Imla DLL diki munasiwetlik Funkitsiyeler
Init UInitImla;
IsCorrect UIsCorrect;
CheckWord UCheckWord;
LoadDictionary ULoadDictionary;
UnLoadDictionary UUnLoadDictionary;
GetCandidateWord UGetCandidateWord;
GetOrgWord UGetOrgWord;
ShowFindDialog UShowFindDialog;
SetUILang USetUILang;
GetToghrisi UGetToghrisi;
HMODULE gLoadImlaDll()
{
HMODULE mhImla=LoadLibrary(L"Kenjimla.Dll");
UInitImla=(Init)GetProcAddress(mhImla,"UInit");
UIsCorrect=(IsCorrect)GetProcAddress(mhImla,"UIsCorrect");
UCheckWord=(CheckWord)GetProcAddress(mhImla,"UCheckWord");
ULoadDictionary=(LoadDictionary)GetProcAddress(mhImla,"ULoadDictionary");
UUnLoadDictionary=(UnLoadDictionary)GetProcAddress(mhImla,"UUnLoadDictionary");
UGetCandidateWord=(GetCandidateWord)GetProcAddress(mhImla,"UGetCandidateWord");
UGetOrgWord=(GetOrgWord)GetProcAddress(mhImla,"UGetOrgWord");
UShowFindDialog=(ShowFindDialog)GetProcAddress(mhImla,"UShowFindDialog");
USetUILang=(SetUILang)GetProcAddress(mhImla,"USetUILang");
UGetToghrisi=(GetToghrisi)GetProcAddress(mhImla,"UGetToghrisi");
return mhImla;
}
int gUGetUnicodeIndex(wchar_t Herp)
{
int ret=-1;
switch(Herp)
{
case UYG_UN_A_6:
case UYG_UN_A_Y:
case UYG_UN_A_A:
ret=UYGIN_A ;
break;
case UYG_UN_E_6:
case UYG_UN_E_Y:
case UYG_UN_E_A:
ret=UYGIN_E ;
break;
case UYG_UN_B_6:
case UYG_UN_B_Y:
case UYG_UN_B_B:
case UYG_UN_B_O:
case UYG_UN_B_A:
ret=UYGIN_B ;
break;
case UYG_UN_P_6:
case UYG_UN_P_Y:
case UYG_UN_P_B:
case UYG_UN_P_O:
case UYG_UN_P_A:
ret=UYGIN_P;
break;
case UYG_UN_T_6:
case UYG_UN_T_Y:
case UYG_UN_T_B:
case UYG_UN_T_O:
case UYG_UN_T_A:
ret=UYGIN_T ;
break;
case UYG_UN_J_6:
case UYG_UN_J_Y:
case UYG_UN_J_B:
case UYG_UN_J_O:
case UYG_UN_J_A:
ret=UYGIN_J ;
break;
case UYG_UN_CH_6:
case UYG_UN_CH_Y:
case UYG_UN_CH_B:
case UYG_UN_CH_O:
case UYG_UN_CH_A:
ret=UYGIN_CH;
break;
case UYG_UN_X_6:
case UYG_UN_X_Y:
case UYG_UN_X_B:
case UYG_UN_X_O:
case UYG_UN_X_A:
ret=UYGIN_X;
break;
case UYG_UN_D_6:
case UYG_UN_D_Y:
case UYG_UN_D_A:
ret=UYGIN_D ;
break;
case UYG_UN_R_6:
case UYG_UN_R_Y:
case UYG_UN_R_A:
ret=UYGIN_R;
break;
case UYG_UN_Z_6:
case UYG_UN_Z_Y:
case UYG_UN_Z_A:
ret=UYGIN_Z;
break;
case UYG_UN_ZZ_6:
case UYG_UN_ZZ_Y:
case UYG_UN_ZZ_A:
ret=UYGIN_ZZ;
break;
case UYG_UN_S_6:
case UYG_UN_S_Y:
case UYG_UN_S_B:
case UYG_UN_S_O:
case UYG_UN_S_A:
ret=UYGIN_S;
break;
case UYG_UN_SH_6:
case UYG_UN_SH_Y:
case UYG_UN_SH_B:
case UYG_UN_SH_O:
case UYG_UN_SH_A:
ret=UYGIN_SH;
break;
case UYG_UN_GH_6:
case UYG_UN_GH_Y:
case UYG_UN_GH_B:
case UYG_UN_GH_O:
case UYG_UN_GH_A:
ret=UYGIN_GH;
break;
case UYG_UN_F_6:
case UYG_UN_F_Y:
case UYG_UN_F_B:
case UYG_UN_F_O:
case UYG_UN_F_A:
ret=UYGIN_F ;
break;
case UYG_UN_Q_6:
case UYG_UN_Q_Y:
case UYG_UN_Q_B:
case UYG_UN_Q_O:
case UYG_UN_Q_A:
ret=UYGIN_Q;
break;
case UYG_UN_K_6:
case UYG_UN_K_Y:
case UYG_UN_K_B:
case UYG_UN_K_O:
case UYG_UN_K_A:
ret=UYGIN_K;
break;
case UYG_UN_G_6:
case UYG_UN_G_Y:
case UYG_UN_G_B:
case UYG_UN_G_O:
case UYG_UN_G_A:
ret=UYGIN_G ;
break;
case UYG_UN_NG_6:
case UYG_UN_NG_Y:
case UYG_UN_NG_B:
case UYG_UN_NG_O:
case UYG_UN_NG_A:
ret=UYGIN_NG ;
break;
case UYG_UN_L_6:
case UYG_UN_L_Y:
case UYG_UN_L_B:
case UYG_UN_L_O:
case UYG_UN_L_A:
ret=UYGIN_L ;
break;
case UYG_UN_M_6:
case UYG_UN_M_Y:
case UYG_UN_M_B:
case UYG_UN_M_O:
case UYG_UN_M_A:
ret=UYGIN_M ;
break;
case UYG_UN_N_6:
case UYG_UN_N_Y:
case UYG_UN_N_B:
case UYG_UN_N_O:
case UYG_UN_N_A:
ret=UYGIN_N;
break;
case UYG_UN_H_6:
case UYG_UN_H_Y:
case UYG_UN_H_A:
case UYG_UN_H_B:
case UYG_UN_H_O:
case UYGE_UN_H_Y: // Yulghunda Ishlitilgen
case UYGE_UN_H_A: // Yulghunda ishlitilgen
ret=UYGIN_H ;
break;
case UYG_UN_O_6:
case UYG_UN_O_Y:
case UYG_UN_O_A:
ret=UYGIN_O ;
break;
case UYG_UN_U_6:
case UYG_UN_U_Y:
case UYG_UN_U_A:
ret=UYGIN_U ;
break;
case UYG_UN_OO_6:
case UYG_UN_OO_Y:
case UYG_UN_OO_A:
ret=UYGIN_OO;
break;
case UYG_UN_UU_6:
case UYG_UN_UU_Y:
case UYG_UN_UU_A:
ret=UYGIN_UU;
break;
case UYG_UN_W_6:
case UYG_UN_W_Y:
case UYG_UN_W_A:
ret=UYGIN_W;
break;
case UYG_UN_EE_6:
case UYG_UN_EE_Y:
case UYG_UN_EE_B:
case UYG_UN_EE_O:
case UYG_UN_EE_A:
ret=UYGIN_EE;
break;
case UYG_UN_I_6:
case UYG_UN_I_Y:
case UYG_UN_I_B:
case UYG_UN_I_O:
case UYG_UN_I_A:
ret=UYGIN_I ;
break;
case UYG_UN_Y_6:
case UYG_UN_Y_Y:
case UYG_UN_Y_B:
case UYG_UN_Y_O:
case UYG_UN_Y_A:
ret=UYGIN_Y ;
break;
case UYG_UN_LA_Y:
case UYG_UN_LA_A:
ret=UYGIN_LA;
break;
case UYG_UN_HM_6:
case UYG_UN_HM_Y:
case UYG_UN_HM_O:
ret=UYGIN_HM;
break;
default:
break;
}
return ret;
}
// Bu Herip ning Uyghurche herip kodimu Hokum qilidu
// Eger Uyghgurche bolsa Uyghurche Fontni Ishlitidu
// Bolmisa Bashqa FOntni ishlitidu
BOOL gUIsUyghur(wchar_t Herip)
{
BOOL ret;
switch(Herip)
{
case UYG_UN_A_6:
case UYG_UN_A_Y:
case UYG_UN_A_A:
case UYG_UN_E_6:
case UYG_UN_E_Y:
case UYG_UN_E_A:
case UYG_UN_B_6:
case UYG_UN_B_Y:
case UYG_UN_B_B:
case UYG_UN_B_O:
case UYG_UN_B_A:
case UYG_UN_P_6:
case UYG_UN_P_Y:
case UYG_UN_P_B:
case UYG_UN_P_O:
case UYG_UN_P_A:
case UYG_UN_T_6:
case UYG_UN_T_Y:
case UYG_UN_T_B:
case UYG_UN_T_O:
case UYG_UN_T_A:
case UYG_UN_J_6:
case UYG_UN_J_Y:
case UYG_UN_J_B:
case UYG_UN_J_O:
case UYG_UN_J_A:
case UYG_UN_CH_6:
case UYG_UN_CH_Y:
case UYG_UN_CH_B:
case UYG_UN_CH_O:
case UYG_UN_CH_A:
case UYG_UN_X_6:
case UYG_UN_X_Y:
case UYG_UN_X_B:
case UYG_UN_X_O:
case UYG_UN_X_A:
case UYG_UN_D_6:
case UYG_UN_D_Y:
case UYG_UN_D_A:
case UYG_UN_R_6:
case UYG_UN_R_Y:
case UYG_UN_R_A:
case UYG_UN_Z_6:
case UYG_UN_Z_Y:
case UYG_UN_Z_A:
case UYG_UN_ZZ_6:
case UYG_UN_ZZ_Y:
case UYG_UN_ZZ_A:
case UYG_UN_S_6:
case UYG_UN_S_Y:
case UYG_UN_S_B:
case UYG_UN_S_O:
case UYG_UN_S_A:
case UYG_UN_SH_6:
case UYG_UN_SH_Y:
case UYG_UN_SH_B:
case UYG_UN_SH_O:
case UYG_UN_SH_A:
case UYG_UN_GH_6:
case UYG_UN_GH_Y:
case UYG_UN_GH_B:
case UYG_UN_GH_O:
case UYG_UN_GH_A:
case UYG_UN_F_6:
case UYG_UN_F_Y:
case UYG_UN_F_B:
case UYG_UN_F_O:
case UYG_UN_F_A:
case UYG_UN_Q_6:
case UYG_UN_Q_Y:
case UYG_UN_Q_B:
case UYG_UN_Q_O:
case UYG_UN_Q_A:
case UYG_UN_K_6:
case UYG_UN_K_Y:
case UYG_UN_K_B:
case UYG_UN_K_O:
case UYG_UN_K_A:
case UYG_UN_G_6:
case UYG_UN_G_Y:
case UYG_UN_G_B:
case UYG_UN_G_O:
case UYG_UN_G_A:
case UYG_UN_NG_6:
case UYG_UN_NG_Y:
case UYG_UN_NG_B:
case UYG_UN_NG_O:
case UYG_UN_NG_A:
case UYG_UN_L_6:
case UYG_UN_L_Y:
case UYG_UN_L_B:
case UYG_UN_L_O:
case UYG_UN_L_A:
case UYG_UN_M_6:
case UYG_UN_M_Y:
case UYG_UN_M_B:
case UYG_UN_M_O:
case UYG_UN_M_A:
case UYG_UN_N_6:
case UYG_UN_N_Y:
case UYG_UN_N_B:
case UYG_UN_N_O:
case UYG_UN_N_A:
case UYG_UN_H_6:
case UYG_UN_H_Y:
case UYG_UN_H_A:
case UYG_UN_H_B:
case UYG_UN_H_O:
case UYG_UN_O_6:
case UYG_UN_O_Y:
case UYG_UN_O_A:
case UYG_UN_U_6:
case UYG_UN_U_Y:
case UYG_UN_U_A:
case UYG_UN_OO_6:
case UYG_UN_OO_Y:
case UYG_UN_OO_A:
case UYG_UN_UU_6:
case UYG_UN_UU_Y:
case UYG_UN_UU_A:
case UYG_UN_W_6:
case UYG_UN_W_Y:
case UYG_UN_W_A:
case UYG_UN_EE_6:
case UYG_UN_EE_Y:
case UYG_UN_EE_B:
case UYG_UN_EE_O:
case UYG_UN_EE_A:
case UYG_UN_I_6:
case UYG_UN_I_Y:
case UYG_UN_I_B:
case UYG_UN_I_O:
case UYG_UN_I_A:
case UYG_UN_Y_6:
case UYG_UN_Y_Y:
case UYG_UN_Y_B:
case UYG_UN_Y_O:
case UYG_UN_Y_A:
case UYG_UN_LA_Y:
case UYG_UN_LA_A:
case UYG_UN_HM_6:
case UYG_UN_HM_Y:
case UYG_UN_HM_O:
// Qoshumche Heripler
case UYGE_UN_HA_Y:
case UYGE_UN_HA_A:
case UYGE_UN_HE_Y:
case UYGE_UN_HE_A:
//hemze bilen O
case UYGE_UN_HO_Y:
case UYGE_UN_HO_A:
//hemze bilen U
case UYGE_UN_HU_Y:
case UYGE_UN_HU_A:
//hemze bilen OO
case UYGE_UN_HOO_Y:
case UYGE_UN_HOO_A:
//hemze bilen UU
case UYGE_UN_HUU_Y:
case UYGE_UN_HUU_A:
//hemze bilen EE
case UYGE_UN_HEE_Y:
case UYGE_UN_HEE_A:
case UYGE_UN_HEE_B:
//hemze bilen I
case UYGE_UN_HI_Y:
case UYGE_UN_HI_A:
case UYGE_UN_HI_B:
// Belgiler
case UYG_UN_PESH:
case UYG_UN_SOZUSH:
case UYG_UN_CHEKITPESH:
case UYG_UN_SOAL:
case VK_SPACE: // Bolshuq we TAB bolsimu Uyghurceh FOntni Ishlitidu
case VK_TAB:
ret=TRUE;
break;
default:
ret=FALSE;
break;
}
return ret;
}
// Bu Herip ning Uyghurche sozuq tawush heripimu Hokum Qilidu
BOOL gUIsSozuqTawushUNICODE(wchar_t Herip)
{
BOOL ret;
switch(Herip)
{
case UYG_UN_A_6:
case UYG_UN_A_Y:
case UYG_UN_A_A:
case UYG_UN_E_6:
case UYG_UN_E_Y:
case UYG_UN_E_A:
case UYG_UN_O_6:
case UYG_UN_O_Y:
case UYG_UN_O_A:
case UYG_UN_U_6:
case UYG_UN_U_Y:
case UYG_UN_U_A:
case UYG_UN_OO_6:
case UYG_UN_OO_Y:
case UYG_UN_OO_A:
case UYG_UN_UU_6:
case UYG_UN_UU_Y:
case UYG_UN_UU_A:
case UYG_UN_EE_6:
case UYG_UN_EE_Y:
case UYG_UN_EE_B:
case UYG_UN_EE_O:
case UYG_UN_EE_A:
case UYG_UN_I_6:
case UYG_UN_I_Y:
case UYG_UN_I_B:
case UYG_UN_I_O:
case UYG_UN_I_A:
case UYG_UN_LA_Y:
case UYG_UN_LA_A:
// Qoshumche Heripler
case UYGE_UN_HA_Y:
case UYGE_UN_HA_A:
case UYGE_UN_HE_Y:
case UYGE_UN_HE_A:
//hemze bilen O
case UYGE_UN_HO_Y:
case UYGE_UN_HO_A:
//hemze bilen U
case UYGE_UN_HU_Y:
case UYGE_UN_HU_A:
//hemze bilen OO
case UYGE_UN_HOO_Y:
case UYGE_UN_HOO_A:
//hemze bilen UU
case UYGE_UN_HUU_Y:
case UYGE_UN_HUU_A:
//hemze bilen EE
case UYGE_UN_HEE_Y:
case UYGE_UN_HEE_A:
case UYGE_UN_HEE_B:
//hemze bilen I
case UYGE_UN_HI_Y:
case UYGE_UN_HI_A:
case UYGE_UN_HI_B:
ret=TRUE;
break;
default:
ret=FALSE;
break;
}
return ret;
}
BOOL gUIsSozuqTawushUKY(wchar_t Herip)
{
BOOL ret;
switch(Herip)
{
case UYG_UKY_A_KICHIK:
case UYG_UKY_A_CHONG:
case UYG_UKY_E_KICHIK:
case UYG_UKY_E_CHONG:
case UYG_UKY_O_KICHIK:
case UYG_UKY_O_CHONG:
case UYG_UKY_U_KICHIK:
case UYG_UKY_U_CHONG:
case UYG_UKY_OO_KICHIK:
case UYG_UKY_OO_CHONG:
case UYG_UKY_UU_KICHIK:
case UYG_UKY_UU_CHONG:
case UYG_UKY_EE_KICHIK:
case UYG_UKY_EE_CHONG:
case UYG_UKY_I_KICHIK:
case UYG_UKY_I_CHONG:
// case 0x00e8:
// case 0x00c8:
ret=TRUE;
break;
default:
ret=FALSE;
break;
}
return ret;
}
wchar_t gUToLowerULY(wchar_t Herp)
{
wchar_t ret=Herp;
switch(Herp)
{
case UYG_UKY_A_CHONG:
ret=UYG_UKY_A_KICHIK ;
break;
case UYG_UKY_E_CHONG:
ret=UYG_UKY_E_KICHIK ;
break;
case UYG_UKY_B_CHONG:
ret=UYG_UKY_B_KICHIK ;
break;
case UYG_UKY_P_CHONG:
ret=UYG_UKY_P_KICHIK;
break;
case UYG_UKY_T_CHONG:
ret=UYG_UKY_T_KICHIK ;
break;
case UYG_UKY_J_CHONG:
ret=UYG_UKY_J_KICHIK ;
break;
case UYG_UKY_X_CHONG:
ret=UYG_UKY_X_KICHIK;
break;
case UYG_UKY_D_CHONG:
ret=UYG_UKY_D_KICHIK ;
break;
case UYG_UKY_R_CHONG:
ret=UYG_UKY_R_KICHIK;
break;
case UYG_UKY_Z_CHONG:
ret=UYG_UKY_Z_KICHIK;
break;
case UYG_UKY_S_CHONG:
ret=UYG_UKY_S_KICHIK;
break;
case UYG_UKY_F_CHONG:
ret=UYG_UKY_F_KICHIK ;
break;
case UYG_UKY_Q_CHONG:
ret=UYG_UKY_Q_KICHIK;
break;
case UYG_UKY_K_CHONG:
ret=UYG_UKY_K_KICHIK;
break;
case UYG_UKY_G_CHONG:
ret=UYG_UKY_G_KICHIK ;
break;
case UYG_UKY_L_CHONG:
ret=UYG_UKY_L_KICHIK ;
break;
case UYG_UKY_M_CHONG:
ret=UYG_UKY_M_KICHIK ;
break;
case UYG_UKY_N_CHONG:
ret=UYG_UKY_N_KICHIK;
break;
case UYG_UKY_H_KICHIK:
case UYG_UKY_H_CHONG:
ret=UYG_UKY_H_KICHIK ;
break;
case UYG_UKY_O_CHONG:
ret=UYG_UKY_O_KICHIK ;
break;
case UYG_UKY_U_CHONG:
ret=UYG_UKY_U_KICHIK ;
break;
case UYG_UKY_OO_CHONG:
ret=UYG_UKY_OO_KICHIK;
break;
case UYG_UKY_UU_CHONG:
ret=UYG_UKY_UU_KICHIK;
break;
case UYG_UKY_W_CHONG:
ret=UYG_UKY_W_KICHIK;
break;
case UYG_UKY_EE_CHONG:
ret=UYG_UKY_EE_KICHIK;
break;
case UYG_UKY_I_CHONG:
ret=UYG_UKY_I_KICHIK ;
break;
case UYG_UKY_Y_CHONG:
ret=UYG_UKY_Y_KICHIK;
break;
case L'C':
ret=L'c';
break;
}
return ret;
}
wchar_t gUToLowerAlahide(wchar_t Herp)
{
wchar_t ret;
ret=Herp;
if(Herp>0xE000 && Herp<0xE0FF)
{
ret=ret-0xE000;
ret=gUToLowerULY(ret);
ret=0xE000+ret;
}
return ret;
}
wchar_t gUToUpperULY(wchar_t Herp)
{
wchar_t ret=Herp;
switch(Herp)
{
case UYG_UKY_A_KICHIK:
ret=UYG_UKY_A_CHONG ;
break;
case UYG_UKY_E_KICHIK:
ret=UYG_UKY_E_CHONG ;
break;
case UYG_UKY_B_KICHIK:
ret=UYG_UKY_B_CHONG ;
break;
case UYG_UKY_P_KICHIK:
ret=UYG_UKY_P_CHONG;
break;
case UYG_UKY_T_KICHIK:
ret=UYG_UKY_T_CHONG ;
break;
case UYG_UKY_J_KICHIK:
ret=UYG_UKY_J_CHONG ;
break;
case UYG_UKY_X_KICHIK:
ret=UYG_UKY_X_CHONG;
break;
case UYG_UKY_D_KICHIK:
ret=UYG_UKY_D_CHONG ;
break;
case UYG_UKY_R_KICHIK:
ret=UYG_UKY_R_CHONG;
break;
case UYG_UKY_Z_KICHIK:
ret=UYG_UKY_Z_CHONG;
break;
case UYG_UKY_S_KICHIK:
ret=UYG_UKY_S_CHONG;
break;
case UYG_UKY_F_KICHIK:
ret=UYG_UKY_F_CHONG ;
break;
case UYG_UKY_Q_KICHIK:
ret=UYG_UKY_Q_CHONG;
break;
case UYG_UKY_K_KICHIK:
ret=UYG_UKY_K_CHONG;
break;
case UYG_UKY_G_KICHIK:
ret=UYG_UKY_G_CHONG ;
break;
case UYG_UKY_L_KICHIK:
ret=UYG_UKY_L_CHONG ;
break;
case UYG_UKY_M_KICHIK:
ret=UYG_UKY_M_CHONG ;
break;
case UYG_UKY_N_KICHIK:
ret=UYG_UKY_N_CHONG;
break;
case UYG_UKY_H_CHONG:
case UYG_UKY_H_KICHIK:
ret=UYG_UKY_H_CHONG ;
break;
case UYG_UKY_O_KICHIK:
ret=UYG_UKY_O_CHONG ;
break;
case UYG_UKY_U_KICHIK:
ret=UYG_UKY_U_CHONG ;
break;
case UYG_UKY_OO_KICHIK:
ret=UYG_UKY_OO_CHONG;
break;
case UYG_UKY_UU_KICHIK:
ret=UYG_UKY_UU_CHONG;
break;
case UYG_UKY_W_KICHIK:
ret=UYG_UKY_W_CHONG;
break;
case UYG_UKY_EE_KICHIK:
ret=UYG_UKY_EE_CHONG;
break;
case UYG_UKY_I_KICHIK:
ret=UYG_UKY_I_CHONG ;
break;
case UYG_UKY_Y_KICHIK:
ret=UYG_UKY_Y_CHONG;
break;
case L'c':
ret=L'C';
break;
}
return ret;
}
wchar_t gUToUpperSlawiyan(wchar_t Herp)
{
wchar_t UHerp=Herp;
switch(Herp)
{
case 0x0430: /*а*/
case 0x0410: /*А*/
UHerp=0x0410;
break;
case 0x04d9: /*ә*/
case 0x04d8: /*Ә*/
UHerp=0x04d8;
break;
case 0x0435: /*е*/
case 0x0415: /*Е*/
UHerp=0x0415;
break;
case 0x0438: /*и*/
case 0x0418: /*И*/
UHerp=0x0418;
break;
case 0x043e: /*о*/
case 0x041e: /*О*/
UHerp=0x041e;
break;
case 0x0443: /*у*/
case 0x0423: /*У*/
UHerp=0x0423;
break;
case 0x04e9: /*ө*/
case 0x04e8: /*Ө*/
UHerp=0x04e8;
break;
case 0x04af: /*ү*/
case 0x04AE: /*Ү*/
UHerp=0x04AE;
break;
case 0x0431: /*б*/;
case 0x0411: /*Б*/
UHerp=0x0411;
break;
case 0x043f: /*п*/
case 0x041F: /*П*/
UHerp=0x041F;
break;
case 0x0442: /*т*/
case 0x0422: /*Т*/
UHerp=0x0422;
break;
case 0x0497: /*җ*/
case 0x0496: /*Җ*/
UHerp=0x0496;
break;
case 0x0447: /*ч*/
case 0x0427: /*Ч*/
UHerp=0x0427;
break;
case 0x0445: /*х*/
case 0x0425: /*Х*/
UHerp=0x0425;
break;
case 0x0434: /*д*/
case 0x0414: /*Д*/
UHerp=0x0414;
break;
case 0x0440: /*р*/
case 0x0420: /*Р*/
UHerp=0x0420;
break;
case 0x0437: /*з*/
case 0x0417: /*З*/
UHerp=0x0417;
break;
case 0x0436: /*ж*/
case 0x0416: /*Ж*/
UHerp=0x0416;
break;
case 0x0441: /*с*/
case 0x0421: /*С*/
UHerp=0x0421;
break;
case 0x0448: /*ш*/
case 0x0428: /*Ш*/
UHerp=0x0428;
break;
case 0x0493: /*ғ*/
case 0x0492: /*Ғ*/
UHerp=0x0492;
break;
case 0x0444: /*ф*/
case 0x0424: /*Ф*/
UHerp=0x0424;
break;
case 0x049b: /*қ*/
case 0x049A: /*Қ*/
UHerp=0x049A;
break;
case 0x043a: /*к*/
case 0x041a: /*К*/
UHerp=0x041a;
break;
case 0x0433: /*г*/
case 0x0413: /*Г*/
UHerp=0x0413;
break;
case 0x04a3: /*ң*/
case 0x04a2: /*Ң*/
UHerp=0x04a2;
break;
case 0x043b: /*л*/
case 0x041B: /*Л*/
UHerp=0x041B;
break;
case 0x043c: /*м*/
case 0x041c: /*М*/
UHerp=0x041c;
break;
case 0x043d: /*н*/
case 0x041D: /*Н*/
UHerp=0x041D;
break;
case 0x04bb: /*һ*/
case 0x04ba: /*Һ*/
UHerp=0x04ba;
break;
case 0x0432: /*в*/
case 0x0412: /*В*/
UHerp=0x0412;
break;
case 0x0439: /*й*/
case 0x0419: /*Й*/
UHerp=0x0419;
break;
case 0x044f: /*'я'*/
case 0x042F: /*Я*/
UHerp=0x042F;
break;
case 0x044E: /*'ю'*/
case 0x042E: /*Ю*/
UHerp=0x042E;
break;
default:
UHerp=Herp;
break;
}
return UHerp;
}
bool gUIsLowerULY(wchar_t Herp)
{
bool ret=false;
switch(Herp)
{
case UYG_UKY_A_KICHIK:
case UYG_UKY_E_KICHIK:
case UYG_UKY_B_KICHIK:
case UYG_UKY_P_KICHIK:
case UYG_UKY_T_KICHIK:
case UYG_UKY_J_KICHIK:
case UYG_UKY_X_KICHIK:
case UYG_UKY_D_KICHIK:
case UYG_UKY_R_KICHIK:
case UYG_UKY_Z_KICHIK:
case UYG_UKY_S_KICHIK:
case UYG_UKY_F_KICHIK:
case UYG_UKY_Q_KICHIK:
case UYG_UKY_K_KICHIK:
case UYG_UKY_G_KICHIK:
case UYG_UKY_L_KICHIK:
case UYG_UKY_M_KICHIK:
case UYG_UKY_N_KICHIK:
case UYG_UKY_H_KICHIK:
case UYG_UKY_O_KICHIK:
case UYG_UKY_U_KICHIK:
case UYG_UKY_OO_KICHIK:
case UYG_UKY_UU_KICHIK:
case UYG_UKY_W_KICHIK:
case UYG_UKY_EE_KICHIK:
case UYG_UKY_I_KICHIK:
case UYG_UKY_Y_KICHIK:
case 'c':
ret=true;
break;
default:
ret=false;
break;
}
return ret;
}
bool gUIsLowerAlahide(wchar_t Herp1)
{
bool ret=false;
wchar_t Herp=Herp1;
if(Herp>0xE000 && Herp<0xE0FF)
{
Herp=Herp-0xE000;
}
switch(Herp)
{
case UYG_UKY_A_KICHIK:
case UYG_UKY_E_KICHIK:
case UYG_UKY_B_KICHIK:
case UYG_UKY_P_KICHIK:
case UYG_UKY_T_KICHIK:
case UYG_UKY_J_KICHIK:
case UYG_UKY_X_KICHIK:
case UYG_UKY_D_KICHIK:
case UYG_UKY_R_KICHIK:
case UYG_UKY_Z_KICHIK:
case UYG_UKY_S_KICHIK:
case UYG_UKY_F_KICHIK:
case UYG_UKY_Q_KICHIK:
case UYG_UKY_K_KICHIK:
case UYG_UKY_G_KICHIK:
case UYG_UKY_L_KICHIK:
case UYG_UKY_M_KICHIK:
case UYG_UKY_N_KICHIK:
case UYG_UKY_H_KICHIK:
case UYG_UKY_O_KICHIK:
case UYG_UKY_U_KICHIK:
case UYG_UKY_OO_KICHIK:
case UYG_UKY_UU_KICHIK:
case UYG_UKY_W_KICHIK:
case UYG_UKY_EE_KICHIK:
case UYG_UKY_I_KICHIK:
case UYG_UKY_Y_KICHIK:
case 'c':
ret=true;
break;
default:
ret=false;
break;