warning: Parameter 1 to _compile_geshi_geshi_view() expected to be a reference, value given in /home/clients/www/drupal/sites/all/modules/compile_geshi/compile_geshi.pages.inc on line 262.

AAda Compiler UCS4 String Normalized Uppercase

27
Dec
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
-- auto-generated by Generate Unicode Uppercase
-- see: http://aada.m2osw.com/compiler/compiler-tools/generate-unicode-uppercase
with aada_compiler_ucs4_character;
with aada_compiler_ucs4_character_to_ccc;
with aada_compiler_ucs4_character_to_uppercase;
use aada_compiler_ucs4_character;
use aada_compiler_ucs4_character_to_ccc;
use aada_compiler_ucs4_character_to_uppercase;
 
package body aada_compiler_ucs4_string_normalized_uppercase is
procedure ucs4_string_to_normalized_uppercase(s: in out ucs4_vstring) is
  sin: ucs4_vstring;
  empty: ucs4_string(1 .. 0);
  temp: ucs4_vstring;
  ccc: ccc_type;
  ccc2: ccc_type;
  i: ucs4_string_length;
  max: constant ucs4_string_length := length(s) - 1;
  n: ucs4_character;
  upper: ucs4_character;
  procedure extend is
    subtype offset is ucs4_string_length range 0 ..  3248;
    type offset_array is array(natural range <>) of offset;
    u: ucs4_character;
    o: offset;
    l: offset;
    p: integer;
    conv: ucs4_vstring;
    -- array of ucs4 characters already converted to positives
-- u and to_extend() are positives already
        r := u - to_extend(p);
        if r = 0 then
          return p; -- found, need conversion
        elsif r < 0 then
          j := p;
        else
          i := p + 1;
        end if;
      end loop;
      return -1; -- not found
    end find_char;
  begin
    u := get(temp, 1);
    p := find_char(positive(u));
    if p = -1 then
      return;
    end if;
    o := offsets(p);
    l := offsets(p + 1) - o;
    if l = 1 then
      -- special case: just replace the character
      set(temp, 1, conversions(o));
    else
      -- replace first character with conversion
      vstr(conversions(o .. o + l - 1), conv);
      temp := conv & substr(temp, 2);
    end if;
  end extend;
  procedure extend_special is
    max: ucs4_string_length := length(temp);
    i: ucs4_string_length;
  begin
    -- skip first char which cannot have ccc /= 0
    i := 2;
    while i < max
    loop
      case get(temp, i) is
      when 16#0340# => set(temp, i, 16#0300#);
      when 16#0341# => set(temp, i, 16#0301#);
      when 16#0343# => set(temp, i, 16#0313#);
      when 16#0344# => set(temp, i, 16#0308#);
                       i := ucs4_string_length'succ(i);
                       insert(temp, i, 16#0301#);
                       max := ucs4_string_length'succ(max);
      when 16#0F73# => set(temp, i, 16#0F71#);
                       i := ucs4_string_length'succ(i);
                       insert(temp, i, 16#0F72#);
                       max := ucs4_string_length'succ(max);
      when 16#0F75# => set(temp, i, 16#0F71#);
                       i := ucs4_string_length'succ(i);
                       insert(temp, i, 16#0F74#);
                       max := ucs4_string_length'succ(max);
      when 16#0F81# => set(temp, i, 16#0F71#);
                       i := ucs4_string_length'succ(i);
                       insert(temp, i, 16#0F80#);
                       max := ucs4_string_length'succ(max);
      when others => null;
      end case;
      i := ucs4_string_length'succ(i);
    end loop;
  end extend_special;
  procedure sort is
    l: ucs4_string_length := length(temp);
    k: ucs4_string_length;
    u: ucs4_character;
  begin
    -- this first character is the starter and it does not get sorted
    for i in ucs4_string_length range 2 .. l - 1
    loop
      ccc := ucs4_to_ccc(get(temp, i));
      -- find the smallest
      k := 0;
      for j in ucs4_string_length range i + 1 .. l
      loop
        ccc2 := ucs4_to_ccc(get(temp, j));
        if ccc2 < ccc then
          ccc := ccc2;
          k := j;
        end if;
      end loop;
      if k /= 0 then
        -- need swapping
        u := get(temp, i);
        set(temp, i, get(temp, k));
        set(temp, k, u);
      end if;
    end loop;
  end sort;
  procedure compress is
    procedure compress2 is 
      max: ucs4_string_length := length(temp) - 1;
      q: ucs4_string_length := 1;
      i: ucs4_string_length;
      j: ucs4_string_length;
      p: ucs4_string_length;
      r: integer;
      comp: ucs4_string(1 ..  2484) := (
        16#C0#,16#41#,16#300#,16#C1#,16#41#,16#301#,16#C2#,16#41#,16#302#,
        16#C3#,16#41#,16#303#,16#100#,16#41#,16#304#,16#102#,16#41#,16#306#,
        16#226#,16#41#,16#307#,16#C4#,16#41#,16#308#,16#1EA2#,16#41#,16#309#,
        16#C5#,16#41#,16#30A#,16#1CD#,16#41#,16#30C#,16#200#,16#41#,16#30F#,
        16#202#,16#41#,16#311#,16#1EA0#,16#41#,16#323#,16#1E00#,16#41#,16#325#,
        16#104#,16#41#,16#328#,16#1E02#,16#42#,16#307#,16#1E04#,16#42#,16#323#,
        16#1E06#,16#42#,16#331#,16#106#,16#43#,16#301#,16#108#,16#43#,16#302#,
        16#10A#,16#43#,16#307#,16#10C#,16#43#,16#30C#,16#C7#,16#43#,16#327#,
        16#1E0A#,16#44#,16#307#,16#10E#,16#44#,16#30C#,16#1E0C#,16#44#,16#323#,
        16#1E10#,16#44#,16#327#,16#1E12#,16#44#,16#32D#,16#1E0E#,16#44#,
        16#331#,16#C8#,16#45#,16#300#,16#C9#,16#45#,16#301#,16#CA#,16#45#,
        16#302#,16#1EBC#,16#45#,16#303#,16#112#,16#45#,16#304#,16#114#,16#45#,
        16#306#,16#116#,16#45#,16#307#,16#CB#,16#45#,16#308#,16#1EBA#,16#45#,
        16#309#,16#11A#,16#45#,16#30C#,16#204#,16#45#,16#30F#,16#206#,16#45#,
        16#311#,16#1EB8#,16#45#,16#323#,16#228#,16#45#,16#327#,16#118#,16#45#,
        16#328#,16#1E18#,16#45#,16#32D#,16#1E1A#,16#45#,16#330#,16#1E1E#,
        16#46#,16#307#,16#1F4#,16#47#,16#301#,16#11C#,16#47#,16#302#,16#1E20#,
        16#47#,16#304#,16#11E#,16#47#,16#306#,16#120#,16#47#,16#307#,16#1E6#,
        16#47#,16#30C#,16#122#,16#47#,16#327#,16#124#,16#48#,16#302#,16#1E22#,
        16#48#,16#307#,16#1E26#,16#48#,16#308#,16#21E#,16#48#,16#30C#,16#1E24#,
        16#48#,16#323#,16#1E28#,16#48#,16#327#,16#1E2A#,16#48#,16#32E#,
        16#1E96#,16#48#,16#331#,16#CC#,16#49#,16#300#,16#CD#,16#49#,16#301#,
        16#CE#,16#49#,16#302#,16#128#,16#49#,16#303#,16#12A#,16#49#,16#304#,
        16#12C#,16#49#,16#306#,16#130#,16#49#,16#307#,16#CF#,16#49#,16#308#,
        16#1EC8#,16#49#,16#309#,16#1CF#,16#49#,16#30C#,16#208#,16#49#,16#30F#,
        16#20A#,16#49#,16#311#,16#1ECA#,16#49#,16#323#,16#12E#,16#49#,16#328#,
        16#1E2C#,16#49#,16#330#,16#134#,16#4A#,16#302#,16#1F0#,16#4A#,16#30C#,
        16#1E30#,16#4B#,16#301#,16#1E8#,16#4B#,16#30C#,16#1E32#,16#4B#,16#323#,
        16#136#,16#4B#,16#327#,16#1E34#,16#4B#,16#331#,16#139#,16#4C#,16#301#,
        16#13D#,16#4C#,16#30C#,16#1E36#,16#4C#,16#323#,16#13B#,16#4C#,16#327#,
        16#1E3C#,16#4C#,16#32D#,16#1E3A#,16#4C#,16#331#,16#1E3E#,16#4D#,
        16#301#,16#1E40#,16#4D#,16#307#,16#1E42#,16#4D#,16#323#,16#1F8#,16#4E#,
        16#300#,16#143#,16#4E#,16#301#,16#D1#,16#4E#,16#303#,16#1E44#,16#4E#,
        16#307#,16#147#,16#4E#,16#30C#,16#1E46#,16#4E#,16#323#,16#145#,16#4E#,
        16#327#,16#1E4A#,16#4E#,16#32D#,16#1E48#,16#4E#,16#331#,16#D2#,16#4F#,
        16#300#,16#D3#,16#4F#,16#301#,16#D4#,16#4F#,16#302#,16#D5#,16#4F#,
        16#303#,16#14C#,16#4F#,16#304#,16#14E#,16#4F#,16#306#,16#22E#,16#4F#,
        16#307#,16#D6#,16#4F#,16#308#,16#1ECE#,16#4F#,16#309#,16#150#,16#4F#,
        16#30B#,16#1D1#,16#4F#,16#30C#,16#20C#,16#4F#,16#30F#,16#20E#,16#4F#,
        16#311#,16#1A0#,16#4F#,16#31B#,16#1ECC#,16#4F#,16#323#,16#1EA#,16#4F#,
        16#328#,16#1E54#,16#50#,16#301#,16#1E56#,16#50#,16#307#,16#154#,16#52#,
        16#301#,16#1E58#,16#52#,16#307#,16#158#,16#52#,16#30C#,16#210#,16#52#,
        16#30F#,16#212#,16#52#,16#311#,16#1E5A#,16#52#,16#323#,16#156#,16#52#,
        16#327#,16#1E5E#,16#52#,16#331#,16#15A#,16#53#,16#301#,16#15C#,16#53#,
        16#302#,16#1E60#,16#53#,16#307#,16#160#,16#53#,16#30C#,16#1E62#,16#53#,
        16#323#,16#218#,16#53#,16#326#,16#15E#,16#53#,16#327#,16#1E6A#,16#54#,
        16#307#,16#1E97#,16#54#,16#308#,16#164#,16#54#,16#30C#,16#1E6C#,16#54#,
        16#323#,16#21A#,16#54#,16#326#,16#162#,16#54#,16#327#,16#1E70#,16#54#,
        16#32D#,16#1E6E#,16#54#,16#331#,16#D9#,16#55#,16#300#,16#DA#,16#55#,
        16#301#,16#DB#,16#55#,16#302#,16#168#,16#55#,16#303#,16#16A#,16#55#,
        16#304#,16#16C#,16#55#,16#306#,16#DC#,16#55#,16#308#,16#1EE6#,16#55#,
        16#309#,16#16E#,16#55#,16#30A#,16#170#,16#55#,16#30B#,16#1D3#,16#55#,
        16#30C#,16#214#,16#55#,16#30F#,16#216#,16#55#,16#311#,16#1AF#,16#55#,
        16#31B#,16#1EE4#,16#55#,16#323#,16#1E72#,16#55#,16#324#,16#172#,16#55#,
        16#328#,16#1E76#,16#55#,16#32D#,16#1E74#,16#55#,16#330#,16#1E7C#,
        16#56#,16#303#,16#1E7E#,16#56#,16#323#,16#1E80#,16#57#,16#300#,
        16#1E82#,16#57#,16#301#,16#174#,16#57#,16#302#,16#1E86#,16#57#,16#307#,
        16#1E84#,16#57#,16#308#,16#1E98#,16#57#,16#30A#,16#1E88#,16#57#,
        16#323#,16#1E8A#,16#58#,16#307#,16#1E8C#,16#58#,16#308#,16#1EF2#,
        16#59#,16#300#,16#DD#,16#59#,16#301#,16#176#,16#59#,16#302#,16#1EF8#,
        16#59#,16#303#,16#232#,16#59#,16#304#,16#1E8E#,16#59#,16#307#,16#178#,
        16#59#,16#308#,16#1EF6#,16#59#,16#309#,16#1E99#,16#59#,16#30A#,
        16#1EF4#,16#59#,16#323#,16#179#,16#5A#,16#301#,16#1E90#,16#5A#,16#302#,
        16#17B#,16#5A#,16#307#,16#17D#,16#5A#,16#30C#,16#1E92#,16#5A#,16#323#,
        16#1E94#,16#5A#,16#331#,16#E0#,16#61#,16#300#,16#E1#,16#61#,16#301#,
        16#E2#,16#61#,16#302#,16#E3#,16#61#,16#303#,16#101#,16#61#,16#304#,
        16#103#,16#61#,16#306#,16#227#,16#61#,16#307#,16#E4#,16#61#,16#308#,
        16#1EA3#,16#61#,16#309#,16#E5#,16#61#,16#30A#,16#1CE#,16#61#,16#30C#,
        16#201#,16#61#,16#30F#,16#203#,16#61#,16#311#,16#1EA1#,16#61#,16#323#,
        16#1E01#,16#61#,16#325#,16#105#,16#61#,16#328#,16#1E03#,16#62#,16#307#,
        16#1E05#,16#62#,16#323#,16#1E07#,16#62#,16#331#,16#107#,16#63#,16#301#,
        16#109#,16#63#,16#302#,16#10B#,16#63#,16#307#,16#10D#,16#63#,16#30C#,
        16#E7#,16#63#,16#327#,16#1E0B#,16#64#,16#307#,16#10F#,16#64#,16#30C#,
        16#1E0D#,16#64#,16#323#,16#1E11#,16#64#,16#327#,16#1E13#,16#64#,
        16#32D#,16#1E0F#,16#64#,16#331#,16#E8#,16#65#,16#300#,16#E9#,16#65#,
        16#301#,16#EA#,16#65#,16#302#,16#1EBD#,16#65#,16#303#,16#113#,16#65#,
        16#304#,16#115#,16#65#,16#306#,16#117#,16#65#,16#307#,16#EB#,16#65#,
        16#308#,16#1EBB#,16#65#,16#309#,16#11B#,16#65#,16#30C#,16#205#,16#65#,
        16#30F#,16#207#,16#65#,16#311#,16#1EB9#,16#65#,16#323#,16#229#,16#65#,
        16#327#,16#119#,16#65#,16#328#,16#1E19#,16#65#,16#32D#,16#1E1B#,16#65#,
        16#330#,16#1E1F#,16#66#,16#307#,16#1F5#,16#67#,16#301#,16#11D#,16#67#,
        16#302#,16#1E21#,16#67#,16#304#,16#11F#,16#67#,16#306#,16#121#,16#67#,
        16#307#,16#1E7#,16#67#,16#30C#,16#123#,16#67#,16#327#,16#125#,16#68#,
        16#302#,16#1E23#,16#68#,16#307#,16#1E27#,16#68#,16#308#,16#21F#,16#68#,
        16#30C#,16#1E25#,16#68#,16#323#,16#1E29#,16#68#,16#327#,16#1E2B#,
        16#68#,16#32E#,16#EC#,16#69#,16#300#,16#ED#,16#69#,16#301#,16#EE#,
        16#69#,16#302#,16#129#,16#69#,16#303#,16#12B#,16#69#,16#304#,16#12D#,
        16#69#,16#306#,16#EF#,16#69#,16#308#,16#1EC9#,16#69#,16#309#,16#1D0#,
        16#69#,16#30C#,16#209#,16#69#,16#30F#,16#20B#,16#69#,16#311#,16#1ECB#,
        16#69#,16#323#,16#12F#,16#69#,16#328#,16#1E2D#,16#69#,16#330#,16#135#,
        16#6A#,16#302#,16#1E31#,16#6B#,16#301#,16#1E9#,16#6B#,16#30C#,16#1E33#,
        16#6B#,16#323#,16#137#,16#6B#,16#327#,16#1E35#,16#6B#,16#331#,16#13A#,
        16#6C#,16#301#,16#13E#,16#6C#,16#30C#,16#1E37#,16#6C#,16#323#,16#13C#,
        16#6C#,16#327#,16#1E3D#,16#6C#,16#32D#,16#1E3B#,16#6C#,16#331#,
        16#1E3F#,16#6D#,16#301#,16#1E41#,16#6D#,16#307#,16#1E43#,16#6D#,
        16#323#,16#1F9#,16#6E#,16#300#,16#144#,16#6E#,16#301#,16#F1#,16#6E#,
        16#303#,16#1E45#,16#6E#,16#307#,16#148#,16#6E#,16#30C#,16#1E47#,16#6E#,
        16#323#,16#146#,16#6E#,16#327#,16#1E4B#,16#6E#,16#32D#,16#1E49#,16#6E#,
        16#331#,16#F2#,16#6F#,16#300#,16#F3#,16#6F#,16#301#,16#F4#,16#6F#,
        16#302#,16#F5#,16#6F#,16#303#,16#14D#,16#6F#,16#304#,16#14F#,16#6F#,
        16#306#,16#22F#,16#6F#,16#307#,16#F6#,16#6F#,16#308#,16#1ECF#,16#6F#,
        16#309#,16#151#,16#6F#,16#30B#,16#1D2#,16#6F#,16#30C#,16#20D#,16#6F#,
        16#30F#,16#20F#,16#6F#,16#311#,16#1A1#,16#6F#,16#31B#,16#1ECD#,16#6F#,
        16#323#,16#1EB#,16#6F#,16#328#,16#1E55#,16#70#,16#301#,16#1E57#,16#70#,
        16#307#,16#155#,16#72#,16#301#,16#1E59#,16#72#,16#307#,16#159#,16#72#,
        16#30C#,16#211#,16#72#,16#30F#,16#213#,16#72#,16#311#,16#1E5B#,16#72#,
        16#323#,16#157#,16#72#,16#327#,16#1E5F#,16#72#,16#331#,16#15B#,16#73#,
        16#301#,16#15D#,16#73#,16#302#,16#1E61#,16#73#,16#307#,16#161#,16#73#,
        16#30C#,16#1E63#,16#73#,16#323#,16#219#,16#73#,16#326#,16#15F#,16#73#,
        16#327#,16#1E6B#,16#74#,16#307#,16#165#,16#74#,16#30C#,16#1E6D#,16#74#,
        16#323#,16#21B#,16#74#,16#326#,16#163#,16#74#,16#327#,16#1E71#,16#74#,
        16#32D#,16#1E6F#,16#74#,16#331#,16#F9#,16#75#,16#300#,16#FA#,16#75#,
        16#301#,16#FB#,16#75#,16#302#,16#169#,16#75#,16#303#,16#16B#,16#75#,
        16#304#,16#16D#,16#75#,16#306#,16#FC#,16#75#,16#308#,16#1EE7#,16#75#,
        16#309#,16#16F#,16#75#,16#30A#,16#171#,16#75#,16#30B#,16#1D4#,16#75#,
        16#30C#,16#215#,16#75#,16#30F#,16#217#,16#75#,16#311#,16#1B0#,16#75#,
        16#31B#,16#1EE5#,16#75#,16#323#,16#1E73#,16#75#,16#324#,16#173#,16#75#,
        16#328#,16#1E77#,16#75#,16#32D#,16#1E75#,16#75#,16#330#,16#1E7D#,
        16#76#,16#303#,16#1E7F#,16#76#,16#323#,16#1E81#,16#77#,16#300#,
        16#1E83#,16#77#,16#301#,16#175#,16#77#,16#302#,16#1E87#,16#77#,16#307#,
        16#1E85#,16#77#,16#308#,16#1E89#,16#77#,16#323#,16#1E8B#,16#78#,
        16#307#,16#1E8D#,16#78#,16#308#,16#1EF3#,16#79#,16#300#,16#FD#,16#79#,
        16#301#,16#177#,16#79#,16#302#,16#1EF9#,16#79#,16#303#,16#233#,16#79#,
        16#304#,16#1E8F#,16#79#,16#307#,16#FF#,16#79#,16#308#,16#1EF7#,16#79#,
        16#309#,16#1EF5#,16#79#,16#323#,16#17A#,16#7A#,16#301#,16#1E91#,16#7A#,
        16#302#,16#17C#,16#7A#,16#307#,16#17E#,16#7A#,16#30C#,16#1E93#,16#7A#,
        16#323#,16#1E95#,16#7A#,16#331#,16#1EA6#,16#C2#,16#300#,16#1EA4#,
        16#C2#,16#301#,16#1EAA#,16#C2#,16#303#,16#1EA8#,16#C2#,16#309#,16#1DE#,
        16#C4#,16#304#,16#1FA#,16#C5#,16#301#,16#1FC#,16#C6#,16#301#,16#1E2#,
        16#C6#,16#304#,16#1E08#,16#C7#,16#301#,16#1EC0#,16#CA#,16#300#,
        16#1EBE#,16#CA#,16#301#,16#1EC4#,16#CA#,16#303#,16#1EC2#,16#CA#,
        16#309#,16#1E2E#,16#CF#,16#301#,16#1ED2#,16#D4#,16#300#,16#1ED0#,
        16#D4#,16#301#,16#1ED6#,16#D4#,16#303#,16#1ED4#,16#D4#,16#309#,
        16#1E4C#,16#D5#,16#301#,16#22C#,16#D5#,16#304#,16#1E4E#,16#D5#,16#308#,
        16#22A#,16#D6#,16#304#,16#1FE#,16#D8#,16#301#,16#1DB#,16#DC#,16#300#,
        16#1D7#,16#DC#,16#301#,16#1D5#,16#DC#,16#304#,16#1D9#,16#DC#,16#30C#,
        16#1EA7#,16#E2#,16#300#,16#1EA5#,16#E2#,16#301#,16#1EAB#,16#E2#,
        16#303#,16#1EA9#,16#E2#,16#309#,16#1DF#,16#E4#,16#304#,16#1FB#,16#E5#,
        16#301#,16#1FD#,16#E6#,16#301#,16#1E3#,16#E6#,16#304#,16#1E09#,16#E7#,
        16#301#,16#1EC1#,16#EA#,16#300#,16#1EBF#,16#EA#,16#301#,16#1EC5#,
        16#EA#,16#303#,16#1EC3#,16#EA#,16#309#,16#1E2F#,16#EF#,16#301#,
        16#1ED3#,16#F4#,16#300#,16#1ED1#,16#F4#,16#301#,16#1ED7#,16#F4#,
        16#303#,16#1ED5#,16#F4#,16#309#,16#1E4D#,16#F5#,16#301#,16#22D#,16#F5#,
        16#304#,16#1E4F#,16#F5#,16#308#,16#22B#,16#F6#,16#304#,16#1FF#,16#F8#,
        16#301#,16#1DC#,16#FC#,16#300#,16#1D8#,16#FC#,16#301#,16#1D6#,16#FC#,
        16#304#,16#1DA#,16#FC#,16#30C#,16#1EB0#,16#102#,16#300#,16#1EAE#,
        16#102#,16#301#,16#1EB4#,16#102#,16#303#,16#1EB2#,16#102#,16#309#,
        16#1EB1#,16#103#,16#300#,16#1EAF#,16#103#,16#301#,16#1EB5#,16#103#,
        16#303#,16#1EB3#,16#103#,16#309#,16#1E14#,16#112#,16#300#,16#1E16#,
        16#112#,16#301#,16#1E15#,16#113#,16#300#,16#1E17#,16#113#,16#301#,
        16#1E50#,16#14C#,16#300#,16#1E52#,16#14C#,16#301#,16#1E51#,16#14D#,
        16#300#,16#1E53#,16#14D#,16#301#,16#1E64#,16#15A#,16#307#,16#1E65#,
        16#15B#,16#307#,16#1E66#,16#160#,16#307#,16#1E67#,16#161#,16#307#,
        16#1E78#,16#168#,16#301#,16#1E79#,16#169#,16#301#,16#1E7A#,16#16A#,
        16#308#,16#1E7B#,16#16B#,16#308#,16#1E9B#,16#17F#,16#307#,16#1EDC#,
        16#1A0#,16#300#,16#1EDA#,16#1A0#,16#301#,16#1EE0#,16#1A0#,16#303#,
        16#1EDE#,16#1A0#,16#309#,16#1EE2#,16#1A0#,16#323#,16#1EDD#,16#1A1#,
        16#300#,16#1EDB#,16#1A1#,16#301#,16#1EE1#,16#1A1#,16#303#,16#1EDF#,
        16#1A1#,16#309#,16#1EE3#,16#1A1#,16#323#,16#1EEA#,16#1AF#,16#300#,
        16#1EE8#,16#1AF#,16#301#,16#1EEE#,16#1AF#,16#303#,16#1EEC#,16#1AF#,
        16#309#,16#1EF0#,16#1AF#,16#323#,16#1EEB#,16#1B0#,16#300#,16#1EE9#,
        16#1B0#,16#301#,16#1EEF#,16#1B0#,16#303#,16#1EED#,16#1B0#,16#309#,
        16#1EF1#,16#1B0#,16#323#,16#1EE#,16#1B7#,16#30C#,16#1EC#,16#1EA#,
        16#304#,16#1ED#,16#1EB#,16#304#,16#1E0#,16#226#,16#304#,16#1E1#,
        16#227#,16#304#,16#1E1C#,16#228#,16#306#,16#1E1D#,16#229#,16#306#,
        16#230#,16#22E#,16#304#,16#231#,16#22F#,16#304#,16#1EF#,16#292#,
        16#30C#,16#1FBA#,16#391#,16#300#,16#386#,16#391#,16#301#,16#1FB9#,
        16#391#,16#304#,16#1FB8#,16#391#,16#306#,16#1F08#,16#391#,16#313#,
        16#1F09#,16#391#,16#314#,16#1FB6#,16#391#,16#342#,16#1FC8#,16#395#,
        16#300#,16#388#,16#395#,16#301#,16#1F18#,16#395#,16#313#,16#1F19#,
        16#395#,16#314#,16#1FCA#,16#397#,16#300#,16#389#,16#397#,16#301#,
        16#1F28#,16#397#,16#313#,16#1F29#,16#397#,16#314#,16#1FC6#,16#397#,
        16#342#,16#1FDA#,16#399#,16#300#,16#38A#,16#399#,16#301#,16#1FD9#,
        16#399#,16#304#,16#1FD8#,16#399#,16#306#,16#3AA#,16#399#,16#308#,
        16#1F38#,16#399#,16#313#,16#1F39#,16#399#,16#314#,16#1FD6#,16#399#,
        16#342#,16#1FF8#,16#39F#,16#300#,16#38C#,16#39F#,16#301#,16#1F48#,
        16#39F#,16#313#,16#1F49#,16#39F#,16#314#,16#1FE4#,16#3A1#,16#313#,
        16#1FEC#,16#3A1#,16#314#,16#1FEA#,16#3A5#,16#300#,16#38E#,16#3A5#,
        16#301#,16#1FE9#,16#3A5#,16#304#,16#1FE8#,16#3A5#,16#306#,16#3AB#,
        16#3A5#,16#308#,16#1F50#,16#3A5#,16#313#,16#1F59#,16#3A5#,16#314#,
        16#1FE6#,16#3A5#,16#342#,16#1FFA#,16#3A9#,16#300#,16#38F#,16#3A9#,
        16#301#,16#1F68#,16#3A9#,16#313#,16#1F69#,16#3A9#,16#314#,16#1FF6#,
        16#3A9#,16#342#,16#1F70#,16#3B1#,16#300#,16#3AC#,16#3B1#,16#301#,
        16#1FB1#,16#3B1#,16#304#,16#1FB0#,16#3B1#,16#306#,16#1F00#,16#3B1#,
        16#313#,16#1F01#,16#3B1#,16#314#,16#1F72#,16#3B5#,16#300#,16#3AD#,
        16#3B5#,16#301#,16#1F10#,16#3B5#,16#313#,16#1F11#,16#3B5#,16#314#,
        16#1F74#,16#3B7#,16#300#,16#3AE#,16#3B7#,16#301#,16#1F20#,16#3B7#,
        16#313#,16#1F21#,16#3B7#,16#314#,16#1F76#,16#3B9#,16#300#,16#3AF#,
        16#3B9#,16#301#,16#1FD1#,16#3B9#,16#304#,16#1FD0#,16#3B9#,16#306#,
        16#3CA#,16#3B9#,16#308#,16#1F30#,16#3B9#,16#313#,16#1F31#,16#3B9#,
        16#314#,16#1F78#,16#3BF#,16#300#,16#3CC#,16#3BF#,16#301#,16#1F40#,
        16#3BF#,16#313#,16#1F41#,16#3BF#,16#314#,16#1FE5#,16#3C1#,16#314#,
        16#1F7A#,16#3C5#,16#300#,16#3CD#,16#3C5#,16#301#,16#1FE1#,16#3C5#,
        16#304#,16#1FE0#,16#3C5#,16#306#,16#3CB#,16#3C5#,16#308#,16#1F51#,
        16#3C5#,16#314#,16#1F7C#,16#3C9#,16#300#,16#3CE#,16#3C9#,16#301#,
        16#1F60#,16#3C9#,16#313#,16#1F61#,16#3C9#,16#314#,16#3D3#,16#3D2#,
        16#301#,16#3D4#,16#3D2#,16#308#,16#407#,16#406#,16#308#,16#4D0#,
        16#410#,16#306#,16#4D2#,16#410#,16#308#,16#403#,16#413#,16#301#,
        16#400#,16#415#,16#300#,16#4D6#,16#415#,16#306#,16#401#,16#415#,
        16#308#,16#4C1#,16#416#,16#306#,16#4DC#,16#416#,16#308#,16#4DE#,
        16#417#,16#308#,16#40D#,16#418#,16#300#,16#4E2#,16#418#,16#304#,
        16#419#,16#418#,16#306#,16#4E4#,16#418#,16#308#,16#40C#,16#41A#,
        16#301#,16#4E6#,16#41E#,16#308#,16#4EE#,16#423#,16#304#,16#40E#,
        16#423#,16#306#,16#4F0#,16#423#,16#308#,16#4F2#,16#423#,16#30B#,
        16#4F4#,16#427#,16#308#,16#4F8#,16#42B#,16#308#,16#4EC#,16#42D#,
        16#308#,16#4D1#,16#430#,16#306#,16#4D3#,16#430#,16#308#,16#453#,
        16#433#,16#301#,16#450#,16#435#,16#300#,16#4D7#,16#435#,16#306#,
        16#451#,16#435#,16#308#,16#4C2#,16#436#,16#306#,16#4DD#,16#436#,
        16#308#,16#4DF#,16#437#,16#308#,16#45D#,16#438#,16#300#,16#4E3#,
        16#438#,16#304#,16#439#,16#438#,16#306#,16#4E5#,16#438#,16#308#,
        16#45C#,16#43A#,16#301#,16#4E7#,16#43E#,16#308#,16#4EF#,16#443#,
        16#304#,16#45E#,16#443#,16#306#,16#4F1#,16#443#,16#308#,16#4F3#,
        16#443#,16#30B#,16#4F5#,16#447#,16#308#,16#4F9#,16#44B#,16#308#,
        16#4ED#,16#44D#,16#308#,16#457#,16#456#,16#308#,16#476#,16#474#,
        16#30F#,16#477#,16#475#,16#30F#,16#4DA#,16#4D8#,16#308#,16#4DB#,
        16#4D9#,16#308#,16#4EA#,16#4E8#,16#308#,16#4EB#,16#4E9#,16#308#,
        16#FB2E#,16#5D0#,16#5B7#,16#FB2F#,16#5D0#,16#5B8#,16#FB30#,16#5D0#,
        16#5BC#,16#FB31#,16#5D1#,16#5BC#,16#FB4C#,16#5D1#,16#5BF#,16#FB32#,
        16#5D2#,16#5BC#,16#FB33#,16#5D3#,16#5BC#,16#FB34#,16#5D4#,16#5BC#,
        16#FB4B#,16#5D5#,16#5B9#,16#FB35#,16#5D5#,16#5BC#,16#FB36#,16#5D6#,
        16#5BC#,16#FB38#,16#5D8#,16#5BC#,16#FB1D#,16#5D9#,16#5B4#,16#FB39#,
        16#5D9#,16#5BC#,16#FB3A#,16#5DA#,16#5BC#,16#FB3B#,16#5DB#,16#5BC#,
        16#FB4D#,16#5DB#,16#5BF#,16#FB3C#,16#5DC#,16#5BC#,16#FB3E#,16#5DE#,
        16#5BC#,16#FB40#,16#5E0#,16#5BC#,16#FB41#,16#5E1#,16#5BC#,16#FB43#,
        16#5E3#,16#5BC#,16#FB44#,16#5E4#,16#5BC#,16#FB4E#,16#5E4#,16#5BF#,
        16#FB46#,16#5E6#,16#5BC#,16#FB47#,16#5E7#,16#5BC#,16#FB48#,16#5E8#,
        16#5BC#,16#FB49#,16#5E9#,16#5BC#,16#FB2A#,16#5E9#,16#5C1#,16#FB2B#,
        16#5E9#,16#5C2#,16#FB4A#,16#5EA#,16#5BC#,16#FB1F#,16#5F2#,16#5B7#,
        16#622#,16#627#,16#653#,16#623#,16#627#,16#654#,16#625#,16#627#,
        16#655#,16#624#,16#648#,16#654#,16#626#,16#64A#,16#654#,16#6C2#,
        16#6C1#,16#654#,16#6D3#,16#6D2#,16#654#,16#6C0#,16#6D5#,16#654#,
        16#958#,16#915#,16#93C#,16#959#,16#916#,16#93C#,16#95A#,16#917#,
        16#93C#,16#95B#,16#91C#,16#93C#,16#95C#,16#921#,16#93C#,16#95D#,
        16#922#,16#93C#,16#929#,16#928#,16#93C#,16#95E#,16#92B#,16#93C#,
        16#95F#,16#92F#,16#93C#,16#931#,16#930#,16#93C#,16#934#,16#933#,
        16#93C#,16#9DC#,16#9A1#,16#9BC#,16#9DD#,16#9A2#,16#9BC#,16#9DF#,
        16#9AF#,16#9BC#,16#A59#,16#A16#,16#A3C#,16#A5A#,16#A17#,16#A3C#,
        16#A5B#,16#A1C#,16#A3C#,16#A5E#,16#A2B#,16#A3C#,16#A33#,16#A32#,
        16#A3C#,16#A36#,16#A38#,16#A3C#,16#B5C#,16#B21#,16#B3C#,16#B5D#,
        16#B22#,16#B3C#,16#C48#,16#C46#,16#C56#,16#DDA#,16#DD9#,16#DCA#,
        16#DDD#,16#DDC#,16#DCA#,16#F76#,16#FB2#,16#F80#,16#F78#,16#FB3#,
        16#F80#,16#1E38#,16#1E36#,16#304#,16#1E39#,16#1E37#,16#304#,16#1E5C#,
        16#1E5A#,16#304#,16#1E5D#,16#1E5B#,16#304#,16#1E68#,16#1E62#,16#307#,
        16#1E69#,16#1E63#,16#307#,16#1EAC#,16#1EA0#,16#302#,16#1EB6#,16#1EA0#,
        16#306#,16#1EAD#,16#1EA1#,16#302#,16#1EB7#,16#1EA1#,16#306#,16#1EC6#,
        16#1EB8#,16#302#,16#1EC7#,16#1EB9#,16#302#,16#1ED8#,16#1ECC#,16#302#,
        16#1ED9#,16#1ECD#,16#302#,16#1F02#,16#1F00#,16#300#,16#1F04#,16#1F00#,
        16#301#,16#1F06#,16#1F00#,16#342#,16#1F03#,16#1F01#,16#300#,16#1F05#,
        16#1F01#,16#301#,16#1F07#,16#1F01#,16#342#,16#1F0A#,16#1F08#,16#300#,
        16#1F0C#,16#1F08#,16#301#,16#1F0E#,16#1F08#,16#342#,16#1F0B#,16#1F09#,
        16#300#,16#1F0D#,16#1F09#,16#301#,16#1F0F#,16#1F09#,16#342#,16#1F12#,
        16#1F10#,16#300#,16#1F14#,16#1F10#,16#301#,16#1F13#,16#1F11#,16#300#,
        16#1F15#,16#1F11#,16#301#,16#1F1A#,16#1F18#,16#300#,16#1F1C#,16#1F18#,
        16#301#,16#1F1B#,16#1F19#,16#300#,16#1F1D#,16#1F19#,16#301#,16#1F22#,
        16#1F20#,16#300#,16#1F24#,16#1F20#,16#301#,16#1F26#,16#1F20#,16#342#,
        16#1F23#,16#1F21#,16#300#,16#1F25#,16#1F21#,16#301#,16#1F27#,16#1F21#,
        16#342#,16#1F2A#,16#1F28#,16#300#,16#1F2C#,16#1F28#,16#301#,16#1F2E#,
        16#1F28#,16#342#,16#1F2B#,16#1F29#,16#300#,16#1F2D#,16#1F29#,16#301#,
        16#1F2F#,16#1F29#,16#342#,16#1F32#,16#1F30#,16#300#,16#1F34#,16#1F30#,
        16#301#,16#1F36#,16#1F30#,16#342#,16#1F33#,16#1F31#,16#300#,16#1F35#,
        16#1F31#,16#301#,16#1F37#,16#1F31#,16#342#,16#1F3A#,16#1F38#,16#300#,
        16#1F3C#,16#1F38#,16#301#,16#1F3E#,16#1F38#,16#342#,16#1F3B#,16#1F39#,
        16#300#,16#1F3D#,16#1F39#,16#301#,16#1F3F#,16#1F39#,16#342#,16#1F42#,
        16#1F40#,16#300#,16#1F44#,16#1F40#,16#301#,16#1F43#,16#1F41#,16#300#,
        16#1F45#,16#1F41#,16#301#,16#1F4A#,16#1F48#,16#300#,16#1F4C#,16#1F48#,
        16#301#,16#1F4B#,16#1F49#,16#300#,16#1F4D#,16#1F49#,16#301#,16#1F53#,
        16#1F51#,16#300#,16#1F55#,16#1F51#,16#301#,16#1F57#,16#1F51#,16#342#,
        16#1F5B#,16#1F59#,16#300#,16#1F5D#,16#1F59#,16#301#,16#1F5F#,16#1F59#,
        16#342#,16#1F62#,16#1F60#,16#300#,16#1F64#,16#1F60#,16#301#,16#1F66#,
        16#1F60#,16#342#,16#1F63#,16#1F61#,16#300#,16#1F65#,16#1F61#,16#301#,
        16#1F67#,16#1F61#,16#342#,16#1F6A#,16#1F68#,16#300#,16#1F6C#,16#1F68#,
        16#301#,16#1F6E#,16#1F68#,16#342#,16#1F6B#,16#1F69#,16#300#,16#1F6D#,
        16#1F69#,16#301#,16#1F6F#,16#1F69#,16#342#,16#3094#,16#3046#,16#3099#,
        16#304C#,16#304B#,16#3099#,16#304E#,16#304D#,16#3099#,16#3050#,
        16#304F#,16#3099#,16#3052#,16#3051#,16#3099#,16#3054#,16#3053#,
        16#3099#,16#3056#,16#3055#,16#3099#,16#3058#,16#3057#,16#3099#,
        16#305A#,16#3059#,16#3099#,16#305C#,16#305B#,16#3099#,16#305E#,
        16#305D#,16#3099#,16#3060#,16#305F#,16#3099#,16#3062#,16#3061#,
        16#3099#,16#3065#,16#3064#,16#3099#,16#3067#,16#3066#,16#3099#,
        16#3069#,16#3068#,16#3099#,16#3070#,16#306F#,16#3099#,16#3071#,
        16#306F#,16#309A#,16#3073#,16#3072#,16#3099#,16#3074#,16#3072#,
        16#309A#,16#3076#,16#3075#,16#3099#,16#3077#,16#3075#,16#309A#,
        16#3079#,16#3078#,16#3099#,16#307A#,16#3078#,16#309A#,16#307C#,
        16#307B#,16#3099#,16#307D#,16#307B#,16#309A#,16#309E#,16#309D#,
        16#3099#,16#30F4#,16#30A6#,16#3099#,16#30AC#,16#30AB#,16#3099#,
        16#30AE#,16#30AD#,16#3099#,16#30B0#,16#30AF#,16#3099#,16#30B2#,
        16#30B1#,16#3099#,16#30B4#,16#30B3#,16#3099#,16#30B6#,16#30B5#,
        16#3099#,16#30B8#,16#30B7#,16#3099#,16#30BA#,16#30B9#,16#3099#,
        16#30BC#,16#30BB#,16#3099#,16#30BE#,16#30BD#,16#3099#,16#30C0#,
        16#30BF#,16#3099#,16#30C2#,16#30C1#,16#3099#,16#30C5#,16#30C4#,
        16#3099#,16#30C7#,16#30C6#,16#3099#,16#30C9#,16#30C8#,16#3099#,
        16#30D0#,16#30CF#,16#3099#,16#30D1#,16#30CF#,16#309A#,16#30D3#,
        16#30D2#,16#3099#,16#30D4#,16#30D2#,16#309A#,16#30D6#,16#30D5#,
        16#3099#,16#30D7#,16#30D5#,16#309A#,16#30D9#,16#30D8#,16#3099#,
        16#30DA#,16#30D8#,16#309A#,16#30DC#,16#30DB#,16#3099#,16#30DD#,
        16#30DB#,16#309A#,16#30F7#,16#30EF#,16#3099#,16#30F8#,16#30F0#,
        16#3099#,16#30F9#,16#30F1#,16#3099#,16#30FA#,16#30F2#,16#3099#,
        16#30FE#,16#30FD#,16#3099#,16#1109A#,16#11099#,16#110BA#,16#1109C#,
        16#1109B#,16#110BA#,16#110AB#,16#110A5#,16#110BA#
      );
    begin
      string_loop:
      while q < max
      loop
        i := 1;
        j := 829;
        search_loop:
        while i < j
        loop
          p := (j - i) / 2 + i;
          r := integer(get(temp, q)) - integer(comp(p * 3 + 1));
          if r = 0 then
            r := integer(get(temp, q + 1)) - integer(comp(p * 3 + 1 + 1));
            if r = 0 then
              set(temp, q, comp(p * 3));
              delete(temp, q + 1, 1);
              max := length(temp) - 1;
              exit search_loop;
            end if;
          end if;
          if r < 0 then
            j := p;
          else -- r > 0
            i := p + 1;
          end if;
        end loop search_loop;
        q := ucs4_string_length'succ(q);
      end loop string_loop;
    end compress2;
    procedure compress3 is 
      max: ucs4_string_length := length(temp) - 2;
      q: ucs4_string_length := 1;
      i: ucs4_string_length;
      j: ucs4_string_length;
      p: ucs4_string_length;
      r: integer;
      comp: ucs4_string(1 ..  56) := (
        16#1FB7#,16#391#,16#342#,16#399#,16#1FC7#,16#397#,16#342#,16#399#,
        16#1FD2#,16#399#,16#308#,16#300#,16#390#,16#399#,16#308#,16#301#,
        16#1FD3#,16#399#,16#308#,16#301#,16#1FD7#,16#399#,16#308#,16#342#,
        16#1FE2#,16#3A5#,16#308#,16#300#,16#3B0#,16#3A5#,16#308#,16#301#,
        16#1FE3#,16#3A5#,16#308#,16#301#,16#1FE7#,16#3A5#,16#308#,16#342#,
        16#1F52#,16#3A5#,16#313#,16#300#,16#1F54#,16#3A5#,16#313#,16#301#,
        16#1F56#,16#3A5#,16#313#,16#342#,16#1FF7#,16#3A9#,16#342#,16#399#
      );
    begin
      string_loop:
      while q < max
      loop
        i := 1;
        j := 15;
        search_loop:
        while i < j
        loop
          p := (j - i) / 2 + i;
          r := integer(get(temp, q)) - integer(comp(p * 4 + 1));
          if r = 0 then
            r := integer(get(temp, q + 1)) - integer(comp(p * 4 + 1 + 1));
          if r = 0 then
            r := integer(get(temp, q + 2)) - integer(comp(p * 4 + 2 + 1));
            if r = 0 then
              set(temp, q, comp(p * 4));
              delete(temp, q + 1, 2);
              max := length(temp) - 2;
              exit search_loop;
            end if;
          end if;
          end if;
          if r < 0 then
            j := p;
          else -- r > 0
            i := p + 1;
          end if;
        end loop search_loop;
        q := ucs4_string_length'succ(q);
      end loop string_loop;
    end compress3;
  begin
    compress3;
    compress2;
  end compress;
begin
  swap(s, sin);
  -- go through all the characters except the last since a character by itself
  -- cannot be unnormalize
  i := 1;
  while i < max
  loop
    n := get(sin, ucs4_string_length'succ(i));
    ccc := ucs4_to_ccc(n);
    if ccc = 0 then
      -- next character is a starter so we're good, just append
      -- but skip format characters
      upper := ucs4_to_upper(get(sin, i));
      if upper /= ucs4_character'first then
        s := s & upper;
      end if;
    else
      -- character may require normalization
      -- (1) copy character + all modifiers
      vstr(empty, temp);
      n := get(sin, i);
      loop
        temp := temp & n;
        i := ucs4_string_length'succ(i);
        exit when i = max; -- end of string reached
        n := get(sin, ucs4_string_length'succ(i));
        ccc := ucs4_to_ccc(n);
        exit when ccc = 0; -- stop on next starter
      end loop;
      -- (2) extend the first character
      extend;
      -- (3) extend special characters
      extend_special;
      -- (4) sort modifiers
      sort;
      -- (5) compress first character
      compress;
      -- (6) copy result in output
      s := s & temp;
    end if;
    i := ucs4_string_length'succ(i);
  end loop;
end ucs4_string_to_normalized_uppercase;
end aada_compiler_ucs4_string_normalized_uppercase;
Project aada v1.0-338 (Project id #3)
Process Done (Last compiled on 2012/01/13 01:21:26)
Description Alexis Ada Compiler written in Ada (my first attempt was in C++ which is not correct for an Ada compiler.)
Syndicate content