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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
|
{
FPC unit compatible with GPC support for handling UCSD-Pascal strings.
}
{
Modified for use with FPC Pascal
Adapted from Version 200 of the GPC unit by <gpc@microbizz.nl>
Please report any bugs to <jonas@freepascal.org>
}
{
Modified for use with Free Pascal
Version 308
Please report any bugs to <gpc@microbizz.nl>
}
{$mode macpas}
{$packenum 1}
{$macro on}
{$inline on}
{$calling mwpascal}
unit GPCStrings;
interface
{$definec UNIVERSAL_INTERFACES_VERSION $0400}
{$definec GAP_INTERFACES_VERSION $0308}
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
{$definec USE_CFSTR_CONSTANT_MACROS TRUE}
{$endc}
{$ifc defined CPUPOWERPC and defined CPUI386}
{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
{$endc}
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
{$endc}
{$ifc not defined __ppc__ and defined CPUPOWERPC32}
{$setc __ppc__ := 1}
{$elsec}
{$setc __ppc__ := 0}
{$endc}
{$ifc not defined __ppc64__ and defined CPUPOWERPC64}
{$setc __ppc64__ := 1}
{$elsec}
{$setc __ppc64__ := 0}
{$endc}
{$ifc not defined __i386__ and defined CPUI386}
{$setc __i386__ := 1}
{$elsec}
{$setc __i386__ := 0}
{$endc}
{$ifc not defined __x86_64__ and defined CPUX86_64}
{$setc __x86_64__ := 1}
{$elsec}
{$setc __x86_64__ := 0}
{$endc}
{$ifc not defined __arm__ and defined CPUARM}
{$setc __arm__ := 1}
{$elsec}
{$setc __arm__ := 0}
{$endc}
{$ifc defined cpu64}
{$setc __LP64__ := 1}
{$elsec}
{$setc __LP64__ := 0}
{$endc}
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
{$error Conflicting definitions for __ppc__ and __i386__}
{$endc}
{$ifc defined __ppc__ and __ppc__}
{$setc TARGET_CPU_PPC := TRUE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __ppc64__ and __ppc64__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := TRUE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __i386__ and __i386__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := TRUE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$ifc defined(iphonesim)}
{$setc TARGET_OS_MAC := FALSE}
{$setc TARGET_OS_IPHONE := TRUE}
{$setc TARGET_IPHONE_SIMULATOR := TRUE}
{$elsec}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$endc}
{$elifc defined __x86_64__ and __x86_64__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := TRUE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __arm__ and __arm__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := TRUE}
{ will require compiler define when/if other Apple devices with ARM cpus ship }
{$setc TARGET_OS_MAC := FALSE}
{$setc TARGET_OS_IPHONE := TRUE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elsec}
{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
{$endc}
{$ifc defined __LP64__ and __LP64__ }
{$setc TARGET_CPU_64 := TRUE}
{$elsec}
{$setc TARGET_CPU_64 := FALSE}
{$endc}
{$ifc defined FPC_BIG_ENDIAN}
{$setc TARGET_RT_BIG_ENDIAN := TRUE}
{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
{$elifc defined FPC_LITTLE_ENDIAN}
{$setc TARGET_RT_BIG_ENDIAN := FALSE}
{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
{$elsec}
{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
{$endc}
{$definec ACCESSOR_CALLS_ARE_FUNCTIONS TRUE}
{$definec CALL_NOT_IN_CARBON FALSE}
{$definec OLDROUTINENAMES FALSE}
{$definec OPAQUE_TOOLBOX_STRUCTS TRUE}
{$definec OPAQUE_UPP_TYPES TRUE}
{$definec OTCARBONAPPLICATION TRUE}
{$definec OTKERNEL FALSE}
{$definec PM_USE_SESSION_APIS TRUE}
{$definec TARGET_API_MAC_CARBON TRUE}
{$definec TARGET_API_MAC_OS8 FALSE}
{$definec TARGET_API_MAC_OSX TRUE}
{$definec TARGET_CARBON TRUE}
{$definec TARGET_CPU_68K FALSE}
{$definec TARGET_CPU_MIPS FALSE}
{$definec TARGET_CPU_SPARC FALSE}
{$definec TARGET_OS_UNIX FALSE}
{$definec TARGET_OS_WIN32 FALSE}
{$definec TARGET_RT_MAC_68881 FALSE}
{$definec TARGET_RT_MAC_CFM FALSE}
{$definec TARGET_RT_MAC_MACHO TRUE}
{$definec TYPED_FUNCTION_POINTERS TRUE}
{$definec TYPE_BOOL FALSE}
{$definec TYPE_EXTENDED FALSE}
{$definec TYPE_LONGLONG TRUE}
{$modeswitch result}
uses MacTypes;
const
kEmptyStr15 : Str15 = '';
kEmptyStr27 : Str27 = '';
kEmptyStr31 : Str31 = '';
kEmptyStr32 : Str32 = '';
kEmptyStr63 : Str63 = '';
kEmptyStr255 : Str255 = '';
type
String15 = String[15];
String27 = String[27];
String31 = String[31];
String32 = String[32];
String36 = String[36];
String63 = String[63];
String255 = String[255];
function Str15Length( const s: Str15 ) : Integer; inline;
function Str27Length( const s: Str27 ) : Integer; inline;
function Str31Length( const s: Str31 ) : Integer; inline;
function Str32Length( const s: Str32 ) : Integer; inline;
function Str63Length( const s: Str63 ) : Integer; inline;
function Str255Length( const s: Str255 ) : Integer; inline;
procedure SetStr15Length( var s: Str15; len: Integer ); inline;
procedure SetStr27Length( var s: Str27; len: Integer ); inline;
procedure SetStr31Length( var s: Str31; len: Integer ); inline;
procedure SetStr32Length( var s: Str32; len: Integer ); inline;
procedure SetStr63Length( var s: Str63; len: Integer ); inline;
procedure SetStr255Length( var s: Str255; len: Integer ); inline;
function CharToStr15( ch: char) : Str15; inline;
function CharToStr27( ch: char) : Str27; inline;
function CharToStr31( ch: char) : Str31; inline;
function CharToStr32( ch: char) : Str32; inline;
function CharToStr63( ch: char) : Str63; inline;
function CharToStr255( ch: char) : Str255; inline;
function Str15ToStr15 ( const s: Str15 ) : Str15; inline;
function Str15ToStr27 ( const s: Str15 ) : Str27; inline;
function Str15ToStr31 ( const s: Str15 ) : Str31; inline;
function Str15ToStr32 ( const s: Str15 ) : Str32; inline;
function Str15ToStr63 ( const s: Str15 ) : Str63; inline;
function Str15ToStr255 ( const s: Str15 ) : Str255; inline;
function Str27ToStr15 ( const s: Str27 ) : Str15; inline;
function Str27ToStr27 ( const s: Str27 ) : Str27; inline;
function Str27ToStr31 ( const s: Str27 ) : Str31; inline;
function Str27ToStr32 ( const s: Str27 ) : Str32; inline;
function Str27ToStr63 ( const s: Str27 ) : Str63; inline;
function Str27ToStr255 ( const s: Str27 ) : Str255; inline;
function Str31ToStr15 ( const s: Str31 ) : Str15; inline;
function Str31ToStr27 ( const s: Str31 ) : Str27; inline;
function Str31ToStr31 ( const s: Str31 ) : Str31; inline;
function Str31ToStr32 ( const s: Str31 ) : Str32; inline;
function Str31ToStr63 ( const s: Str31 ) : Str63; inline;
function Str31ToStr255 ( const s: Str31 ) : Str255; inline;
function Str32ToStr15 ( const s: Str32 ) : Str15; inline;
function Str32ToStr27 ( const s: Str32 ) : Str27; inline;
function Str32ToStr31 ( const s: Str32 ) : Str31; inline;
function Str32ToStr32 ( const s: Str32 ) : Str32; inline;
function Str32ToStr63 ( const s: Str32 ) : Str63; inline;
function Str32ToStr255 ( const s: Str32 ) : Str255; inline;
function Str63ToStr15 ( const s: Str63 ) : Str15; inline;
function Str63ToStr27 ( const s: Str63 ) : Str27; inline;
function Str63ToStr31 ( const s: Str63 ) : Str31; inline;
function Str63ToStr32 ( const s: Str63 ) : Str32; inline;
function Str63ToStr63 ( const s: Str63 ) : Str63; inline;
function Str63ToStr255 ( const s: Str63 ) : Str255; inline;
function Str255ToStr15 ( const s: Str255 ) : Str15; inline;
function Str255ToStr27 ( const s: Str255 ) : Str27; inline;
function Str255ToStr31 ( const s: Str255 ) : Str31; inline;
function Str255ToStr32 ( const s: Str255 ) : Str32; inline;
function Str255ToStr63 ( const s: Str255 ) : Str63; inline;
function Str255ToStr255 ( const s: Str255 ) : Str255; inline;
procedure Str15IntoStr15 ( const s: Str15; var theResult: Str15 ); inline;
procedure Str15IntoStr27 ( const s: Str15; var theResult: Str27 ); inline;
procedure Str15IntoStr31 ( const s: Str15; var theResult: Str31 ); inline;
procedure Str15IntoStr32 ( const s: Str15; var theResult: Str32 ); inline;
procedure Str15IntoStr63 ( const s: Str15; var theResult: Str63 ); inline;
procedure Str15IntoStr255 ( const s: Str15; var theResult: Str255 ); inline;
procedure Str27IntoStr15 ( const s: Str27; var theResult: Str15 ); inline;
procedure Str27IntoStr27 ( const s: Str27; var theResult: Str27 ); inline;
procedure Str27IntoStr31 ( const s: Str27; var theResult: Str31 ); inline;
procedure Str27IntoStr32 ( const s: Str27; var theResult: Str32 ); inline;
procedure Str27IntoStr63 ( const s: Str27; var theResult: Str63 ); inline;
procedure Str27IntoStr255 ( const s: Str27; var theResult: Str255 ); inline;
procedure Str31IntoStr15 ( const s: Str31; var theResult: Str15 ); inline;
procedure Str31IntoStr27 ( const s: Str31; var theResult: Str27 ); inline;
procedure Str31IntoStr31 ( const s: Str31; var theResult: Str31 ); inline;
procedure Str31IntoStr32 ( const s: Str31; var theResult: Str32 ); inline;
procedure Str31IntoStr63 ( const s: Str31; var theResult: Str63 ); inline;
procedure Str31IntoStr255 ( const s: Str31; var theResult: Str255 ); inline;
procedure Str32IntoStr15 ( const s: Str32; var theResult: Str15 ); inline;
procedure Str32IntoStr27 ( const s: Str32; var theResult: Str27 ); inline;
procedure Str32IntoStr31 ( const s: Str32; var theResult: Str31 ); inline;
procedure Str32IntoStr32 ( const s: Str32; var theResult: Str32 ); inline;
procedure Str32IntoStr63 ( const s: Str32; var theResult: Str63 ); inline;
procedure Str32IntoStr255 ( const s: Str32; var theResult: Str255 ); inline;
procedure Str63IntoStr15 ( const s: Str63; var theResult: Str15 ); inline;
procedure Str63IntoStr27 ( const s: Str63; var theResult: Str27 ); inline;
procedure Str63IntoStr31 ( const s: Str63; var theResult: Str31 ); inline;
procedure Str63IntoStr32 ( const s: Str63; var theResult: Str32 ); inline;
procedure Str63IntoStr63 ( const s: Str63; var theResult: Str63 ); inline;
procedure Str63IntoStr255 ( const s: Str63; var theResult: Str255 ); inline;
procedure Str255IntoStr15 ( const s: Str255; var theResult: Str15 ); inline;
procedure Str255IntoStr27 ( const s: Str255; var theResult: Str27 ); inline;
procedure Str255IntoStr31 ( const s: Str255; var theResult: Str31 ); inline;
procedure Str255IntoStr32 ( const s: Str255; var theResult: Str32 ); inline;
procedure Str255IntoStr63 ( const s: Str255; var theResult: Str63 ); inline;
procedure Str255IntoStr255 ( const s: Str255; var theResult: Str255 ); inline;
function StringToStr15( const s: String ) : Str15; inline;
procedure StringIntoStr15( const s: String; var theResult: Str15 ); inline;
function StringToStr27( const s: String ) : Str27; inline;
procedure StringIntoStr27( const s: String; var theResult: Str27 ); inline;
function StringToStr31( const s: String ) : Str31; inline;
procedure StringIntoStr31( const s: String; var theResult: Str31 ); inline;
function StringToStr32( const s: String ) : Str32; inline;
procedure StringIntoStr32( const s: String; var theResult: Str32 ); inline;
function StringToStr63( const s: String ) : Str63; inline;
procedure StringIntoStr63( const s: String; var theResult: Str63 ); inline;
function StringToStr255( const s: String ) : Str255; inline;
procedure StringIntoStr255( const s: String; var theResult: Str255 ); inline;
function Str15ToString( const s: Str15 ) : String15; inline;
function Str27ToString( const s: Str27 ) : String27; inline;
function Str31ToString( const s: Str31 ) : String31; inline;
function Str32ToString( const s: Str32 ) : String32; inline;
function Str63ToString( const s: Str63 ) : String63; inline;
function Str255ToString( const s: Str255 ) : String255; inline;
procedure InitStr15( var s: Str15); inline;
procedure InitStr27( var s: Str27); inline;
procedure InitStr31( var s: Str31); inline;
procedure InitStr32( var s: Str32); inline;
procedure InitStr63( var s: Str63); inline;
procedure InitStr255( var s: Str255); inline;
function CopyStr15( const theSource: Str15; theStart, theCount: Integer) : Str255; inline;
function CopyStr27( const theSource: Str27; theStart, theCount: Integer) : Str255; inline;
function CopyStr31( const theSource: Str31; theStart, theCount: Integer) : Str255; inline;
function CopyStr32( const theSource: Str32; theStart, theCount: Integer) : Str255; inline;
function CopyStr63( const theSource: Str63; theStart, theCount: Integer) : Str255; inline;
function CopyStr255( const theSource: Str255; theStart, theCount: Integer) : Str255; inline;
procedure DeleteStr15( var theDest: Str15; theStart, theCount: Integer); inline;
procedure DeleteStr27( var theDest: Str27; theStart, theCount: Integer); inline;
procedure DeleteStr31( var theDest: Str31; theStart, theCount: Integer); inline;
procedure DeleteStr32( var theDest: Str32; theStart, theCount: Integer); inline;
procedure DeleteStr63( var theDest: Str63; theStart, theCount: Integer); inline;
procedure DeleteStr255( var theDest: Str255; theStart, theCount: Integer); inline;
procedure InsertStr255( const theSource: Str255; var theDest: Str255; theStart: Integer); inline;
function PosCharInStr15( theCh: Char; const theStr: Str15) : Integer; inline;
function PosCharInStr27( theCh: Char; const theStr: Str27) : Integer; inline;
function PosCharInStr31( theCh: Char; const theStr: Str31) : Integer; inline;
function PosCharInStr32( theCh: Char; const theStr: Str32) : Integer; inline;
function PosCharInStr63( theCh: Char; const theStr: Str63) : Integer; inline;
function PosCharInStr255( theCh: Char; const theStr: Str255) : Integer; inline;
function PosInStr255( const theSubStr, theSourceStr: Str255) : Integer; inline;
implementation
{$R-}
function Str15Length( const s: Str15 ) : Integer; inline;
begin
result := length(s);
end;
function Str27Length( const s: Str27 ) : Integer;
begin
result := length(s);
end;
function Str31Length( const s: Str31 ) : Integer;
begin
result := length(s);
end;
function Str32Length( const s: Str32 ) : Integer;
begin
result := length(s);
end;
function Str63Length( const s: Str63 ) : Integer;
begin
result := length(s);
end;
function Str255Length( const s: Str255 ) : Integer;
begin
result := length(s);
end;
procedure SetStr15Length( var s: Str15; len: Integer );
begin
setlength(s,len);
end;
procedure SetStr27Length( var s: Str27; len: Integer );
begin
setlength(s,len);
end;
procedure SetStr31Length( var s: Str31; len: Integer );
begin
setlength(s,len);
end;
procedure SetStr32Length( var s: Str32; len: Integer );
begin
setlength(s,len);
end;
procedure SetStr63Length( var s: Str63; len: Integer );
begin
setlength(s,len);
end;
procedure SetStr255Length( var s: Str255; len: Integer );
begin
setlength(s,len);
end;
function CharToStr15( ch: char): Str15;
begin
result := ch;
end;
function CharToStr27( ch: char) : Str27;
begin
result := ch;
end;
function CharToStr31( ch: char) : Str31;
begin
result := ch;
end;
function CharToStr32( ch: char) : Str32;
begin
result := ch;
end;
function CharToStr63( ch: char) : Str63;
begin
result := ch;
end;
function CharToStr255( ch: char) : Str255;
begin
result := ch;
end;
function Str15ToStr15 ( const s: Str15 ) : Str15;
begin
result := s;
end;
function Str15ToStr27 ( const s: Str15 ) : Str27;
begin
result := s;
end;
function Str15ToStr31 ( const s: Str15 ) : Str31;
begin
result := s;
end;
function Str15ToStr32 ( const s: Str15 ) : Str32;
begin
result := s;
end;
function Str15ToStr63 ( const s: Str15 ) : Str63;
begin
result := s;
end;
function Str15ToStr255 ( const s: Str15 ) : Str255;
begin
result := s;
end;
function Str27ToStr15 ( const s: Str27 ) : Str15;
begin
result := s;
end;
function Str27ToStr27 ( const s: Str27 ) : Str27;
begin
result := s;
end;
function Str27ToStr31 ( const s: Str27 ) : Str31;
begin
result := s;
end;
function Str27ToStr32 ( const s: Str27 ) : Str32;
begin
result := s;
end;
function Str27ToStr63 ( const s: Str27 ) : Str63;
begin
result := s;
end;
function Str27ToStr255 ( const s: Str27 ) : Str255;
begin
result := s;
end;
function Str31ToStr15 ( const s: Str31 ) : Str15;
begin
result := s;
end;
function Str31ToStr27 ( const s: Str31 ) : Str27;
begin
result := s;
end;
function Str31ToStr31 ( const s: Str31 ) : Str31;
begin
result := s;
end;
function Str31ToStr32 ( const s: Str31 ) : Str32;
begin
result := s;
end;
function Str31ToStr63 ( const s: Str31 ) : Str63;
begin
result := s;
end;
function Str31ToStr255 ( const s: Str31 ) : Str255;
begin
result := s;
end;
function Str32ToStr15 ( const s: Str32 ) : Str15;
begin
result := s;
end;
function Str32ToStr27 ( const s: Str32 ) : Str27;
begin
result := s;
end;
function Str32ToStr31 ( const s: Str32 ) : Str31;
begin
result := s;
end;
function Str32ToStr32 ( const s: Str32 ) : Str32;
begin
result := s;
end;
function Str32ToStr63 ( const s: Str32 ) : Str63;
begin
result := s;
end;
function Str32ToStr255 ( const s: Str32 ) : Str255;
begin
result := s;
end;
function Str63ToStr15 ( const s: Str63 ) : Str15;
begin
result := s;
end;
function Str63ToStr27 ( const s: Str63 ) : Str27;
begin
result := s;
end;
function Str63ToStr31 ( const s: Str63 ) : Str31;
begin
result := s;
end;
function Str63ToStr32 ( const s: Str63 ) : Str32;
begin
result := s;
end;
function Str63ToStr63 ( const s: Str63 ) : Str63;
begin
result := s;
end;
function Str63ToStr255 ( const s: Str63 ) : Str255;
begin
result := s;
end;
function Str255ToStr15 ( const s: Str255 ) : Str15;
begin
result := s;
end;
function Str255ToStr27 ( const s: Str255 ) : Str27;
begin
result := s;
end;
function Str255ToStr31 ( const s: Str255 ) : Str31;
begin
result := s;
end;
function Str255ToStr32 ( const s: Str255 ) : Str32;
begin
result := s;
end;
function Str255ToStr63 ( const s: Str255 ) : Str63;
begin
result := s;
end;
function Str255ToStr255 ( const s: Str255 ) : Str255;
begin
result := s;
end;
procedure Str15IntoStr15 ( const s: Str15; var theResult: Str15 );
begin
theResult := s;
end;
procedure Str15IntoStr27 ( const s: Str15; var theResult: Str27 );
begin
theResult := s;
end;
procedure Str15IntoStr31 ( const s: Str15; var theResult: Str31 );
begin
theResult := s;
end;
procedure Str15IntoStr32 ( const s: Str15; var theResult: Str32 );
begin
theResult := s;
end;
procedure Str15IntoStr63 ( const s: Str15; var theResult: Str63 );
begin
theResult := s;
end;
procedure Str15IntoStr255 ( const s: Str15; var theResult: Str255 );
begin
theResult := s;
end;
procedure Str27IntoStr15 ( const s: Str27; var theResult: Str15 );
begin
theResult := s;
end;
procedure Str27IntoStr27 ( const s: Str27; var theResult: Str27 );
begin
theResult := s;
end;
procedure Str27IntoStr31 ( const s: Str27; var theResult: Str31 );
begin
theResult := s;
end;
procedure Str27IntoStr32 ( const s: Str27; var theResult: Str32 );
begin
theResult := s;
end;
procedure Str27IntoStr63 ( const s: Str27; var theResult: Str63 );
begin
theResult := s;
end;
procedure Str27IntoStr255 ( const s: Str27; var theResult: Str255 );
begin
theResult := s;
end;
procedure Str31IntoStr15 ( const s: Str31; var theResult: Str15 );
begin
theResult := s;
end;
procedure Str31IntoStr27 ( const s: Str31; var theResult: Str27 );
begin
theResult := s;
end;
procedure Str31IntoStr31 ( const s: Str31; var theResult: Str31 );
begin
theResult := s;
end;
procedure Str31IntoStr32 ( const s: Str31; var theResult: Str32 );
begin
theResult := s;
end;
procedure Str31IntoStr63 ( const s: Str31; var theResult: Str63 );
begin
theResult := s;
end;
procedure Str31IntoStr255 ( const s: Str31; var theResult: Str255 );
begin
theResult := s;
end;
procedure Str32IntoStr15 ( const s: Str32; var theResult: Str15 );
begin
theResult := s;
end;
procedure Str32IntoStr27 ( const s: Str32; var theResult: Str27 );
begin
theResult := s;
end;
procedure Str32IntoStr31 ( const s: Str32; var theResult: Str31 );
begin
theResult := s;
end;
procedure Str32IntoStr32 ( const s: Str32; var theResult: Str32 );
begin
theResult := s;
end;
procedure Str32IntoStr63 ( const s: Str32; var theResult: Str63 );
begin
theResult := s;
end;
procedure Str32IntoStr255 ( const s: Str32; var theResult: Str255 );
begin
theResult := s;
end;
procedure Str63IntoStr15 ( const s: Str63; var theResult: Str15 );
begin
theResult := s;
end;
procedure Str63IntoStr27 ( const s: Str63; var theResult: Str27 );
begin
theResult := s;
end;
procedure Str63IntoStr31 ( const s: Str63; var theResult: Str31 );
begin
theResult := s;
end;
procedure Str63IntoStr32 ( const s: Str63; var theResult: Str32 );
begin
theResult := s;
end;
procedure Str63IntoStr63 ( const s: Str63; var theResult: Str63 );
begin
theResult := s;
end;
procedure Str63IntoStr255 ( const s: Str63; var theResult: Str255 );
begin
theResult := s;
end;
procedure Str255IntoStr15 ( const s: Str255; var theResult: Str15 );
begin
theResult := s;
end;
procedure Str255IntoStr27 ( const s: Str255; var theResult: Str27 );
begin
theResult := s;
end;
procedure Str255IntoStr31 ( const s: Str255; var theResult: Str31 );
begin
theResult := s;
end;
procedure Str255IntoStr32 ( const s: Str255; var theResult: Str32 );
begin
theResult := s;
end;
procedure Str255IntoStr63 ( const s: Str255; var theResult: Str63 );
begin
theResult := s;
end;
procedure Str255IntoStr255 ( const s: Str255; var theResult: Str255 );
begin
theResult := s;
end;
function StringToStr15( const s: String ) : Str15;
begin
result := s;
end;
procedure StringIntoStr15( const s: String; var theResult: Str15 );
begin
theResult := s;
end;
function StringToStr27( const s: String ) : Str27;
begin
result := s;
end;
procedure StringIntoStr27( const s: String; var theResult: Str27 );
begin
theResult := s;
end;
function StringToStr31( const s: String ) : Str31;
begin
result := s;
end;
procedure StringIntoStr31( const s: String; var theResult: Str31 );
begin
theResult := s;
end;
function StringToStr32( const s: String ) : Str32;
begin
result := s;
end;
procedure StringIntoStr32( const s: String; var theResult: Str32 );
begin
theResult := s;
end;
function StringToStr63( const s: String ) : Str63;
begin
result := s;
end;
procedure StringIntoStr63( const s: String; var theResult: Str63 );
begin
theResult := s;
end;
function StringToStr255( const s: String ) : Str255;
begin
result := s;
end;
procedure StringIntoStr255( const s: String; var theResult: Str255 );
begin
theResult := s;
end;
function Str15ToString( const s: Str15 ) : String15;
begin
result := s;
end;
function Str27ToString( const s: Str27 ) : String27;
begin
result := s;
end;
function Str31ToString( const s: Str31 ) : String31;
begin
result := s;
end;
function Str32ToString( const s: Str32 ) : String32;
begin
result := s;
end;
function Str63ToString( const s: Str63 ) : String63;
begin
result := s;
end;
function Str255ToString( const s: Str255 ) : String255;
begin
result := s;
end;
procedure InitStr15( var s: Str15);
begin
s := ''
end;
procedure InitStr27( var s: Str27);
begin
s := ''
end;
procedure InitStr31( var s: Str31);
begin
s := ''
end;
procedure InitStr32( var s: Str32);
begin
s := ''
end;
procedure InitStr63( var s: Str63);
begin
s := ''
end;
procedure InitStr255( var s: Str255);
begin
s := ''
end;
function CopyStr15( const theSource: Str15; theStart, theCount: Integer) : Str255;
begin
result := copy(theSource,theStart,theCount)
end;
function CopyStr27( const theSource: Str27; theStart, theCount: Integer) : Str255;
begin
result := copy(theSource,theStart,theCount)
end;
function CopyStr31( const theSource: Str31; theStart, theCount: Integer) : Str255;
begin
result := copy(theSource,theStart,theCount)
end;
function CopyStr32( const theSource: Str32; theStart, theCount: Integer) : Str255;
begin
result := copy(theSource,theStart,theCount)
end;
function CopyStr63( const theSource: Str63; theStart, theCount: Integer) : Str255;
begin
result := copy(theSource,theStart,theCount)
end;
function CopyStr255( const theSource: Str255; theStart, theCount: Integer) : Str255;
begin
result := copy(theSource,theStart,theCount)
end;
procedure DeleteStr15( var theDest: Str15; theStart, theCount: Integer);
begin
delete(theDest,theStart,theCount)
end;
procedure DeleteStr27( var theDest: Str27; theStart, theCount: Integer);
begin
delete(theDest,theStart,theCount)
end;
procedure DeleteStr31( var theDest: Str31; theStart, theCount: Integer);
begin
delete(theDest,theStart,theCount)
end;
procedure DeleteStr32( var theDest: Str32; theStart, theCount: Integer);
begin
delete(theDest,theStart,theCount)
end;
procedure DeleteStr63( var theDest: Str63; theStart, theCount: Integer);
begin
delete(theDest,theStart,theCount)
end;
procedure DeleteStr255( var theDest: Str255; theStart, theCount: Integer);
begin
delete(theDest,theStart,theCount)
end;
procedure InsertStr255( const theSource: Str255; var theDest: Str255; theStart: Integer);
begin
insert(theSource,theDest,theStart);
end;
function PosCharInStr15( theCh: Char; const theStr: Str15) : Integer;
begin
result := pos(theCh,theStr)
end;
function PosCharInStr27( theCh: Char; const theStr: Str27) : Integer;
begin
result := pos(theCh,theStr)
end;
function PosCharInStr31( theCh: Char; const theStr: Str31) : Integer;
begin
result := pos(theCh,theStr)
end;
function PosCharInStr32( theCh: Char; const theStr: Str32) : Integer;
begin
result := pos(theCh,theStr)
end;
function PosCharInStr63( theCh: Char; const theStr: Str63) : Integer;
begin
result := pos(theCh,theStr)
end;
function PosCharInStr255( theCh: Char; const theStr: Str255) : Integer;
begin
result := pos(theCh,theStr)
end;
function PosInStr255( const theSubStr, theSourceStr: Str255) : Integer;
begin
result := pos(theSubStr,theSourceStr);
end;
end.
|