-
Notifications
You must be signed in to change notification settings - Fork 8
/
hbgt.html
811 lines (772 loc) · 67.1 KB
/
hbgt.html
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
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="referrer" content="origin">
<meta name="viewport" content="initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content">
<meta name="generator" content="hbdoc">
<meta name="keywords" content="Harbour, Clipper, xBase, database, Free Software, GPL, compiler, cross-platform, 32-bit, 64-bit">
<title>Harbour Reference Guide · hbgt lib</title>
<style>
/**
* Minified by jsDelivr using clean-css v4.2.1.
* Original file: /gh/PrismJS/[email protected]/themes/prism-okaidia.css
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
/*# sourceMappingURL=/sm/40fbac8c090a0ea2949bef662c4dc8f61e9fdf4136e4615ec312d47b6c8d4578.map */
</style>
<link rel="stylesheet" href="hbdoc.css">
<body>
<header>
<svg viewBox="0 0 2260 2260" xmlns="http://www.w3.org/2000/svg">
<path d="m900 1908c137.17-53.265 443.4-77.006 600-52.437-27.114-474.75-34.113-758.18-7.68-1116.3 2.056-27.195 4.283-54.9 6.68-83.245-34.633 68.628-579.45 1206.4-599 1252z"/>
<path d="m1503 297c-123.84 327.12-161.3 844.46-213.46 1389.5-169.5-13.113-449.01 19.795-659.3 108.82 13.528-23.75 771.23-1330.1 872.77-1498.3z"/>
<path d="m1172 1270c-224.3-65.046-473.09 64.996-694 204 153.35-235.43 613.25-936.89 1011-1474-301.51 419.86-317.18 1087.9-317 1270z"/>
<path d="m620.8 2258.7c0.662-1.037 1.36-2.165 2.068-3.191 36.736-55.29 105.69-101.18 205.1-96.72 193.8 8.619 357.24 25.577 652.18 7.207-290.1-9.342-643.35-48.142-1069.1-124.55 105.83 77.98 193.83 195.4 209.76 217.25"/>
<path d="m2259.2 2007.9c-351.83 85.376-1111.3 54.312-2014.2-105.24 59.534 32.024 105.24 68.44 160.57 113.87 884.55 158.71 1465.7 153.54 1808.7 60.37 31.307-22.43 35.385-37.956 44.934-69.006"/>
<path d="m2250.8 1985.6c-316.53 76.867-976 46.6-1793.5-72.332-79.588-11.605-308.23-46.57-445.63-69.063-7.464-15.506-11.282-40.462-11.282-70.79 509.45 68.675 1799.6 275.42 2244 168.26 2.015 12.02 7.115 18.487 6.527 43.929"/>
</svg>
<div>
<div><a href="index.html">Harbour Reference Guide</a></div>
<div>
<nav class="menu">
<nav class="dropdown">
<span class="dropbtn" onclick="">hbgt lib</span>
<nav class="dropdown-content">
<a href="harbour.html">Harbour core</a>
<hr>
<a href="clc53.html">Clipper 5.3</a>
<a href="clct3.html">Clipper Tools 3</a>
<hr>
<a href="gtwvw.html">gtwvw</a>
<a href="hbct.html">hbct</a>
<a href="hbcups.html">hbcups</a>
<a href="hbgd.html">hbgd</a>
<a href="hbgt.html">hbgt</a>
<a href="hbmisc.html">hbmisc</a>
<a href="hbnf.html">hbnf</a>
<a href="hbxpp.html">hbxpp</a>
<a href="hbziparc.html">hbziparc</a>
<a href="rddads.html">rddads</a>
</nav>
</nav>
<nav class="dropdown lang">
<span class="dropbtn lang">EN</span><nav class="dropdown-content lang">
<a href="hbgt.html">EN</a>
<a href="pt-br/index.html">pt-BR</a>
</nav>
</nav>
</nav>
</div>
</div>
</header>
<aside>
<a href="#gt_asciisum" title="gt_AsciiSum()"><code>gt_AsciiSum()</code></a>
<a href="#gt_ascpos" title="gt_AscPos()"><code>gt_AscPos()</code></a>
<a href="#gt_atdiff" title="gt_AtDiff()"><code>gt_AtDiff()</code></a>
<a href="#gt_chareven" title="gt_CharEven()"><code>gt_CharEven()</code></a>
<a href="#gt_charmix" title="gt_CharMix()"><code>gt_CharMix()</code></a>
<a href="#gt_charodd" title="gt_CharOdd()"><code>gt_CharOdd()</code></a>
<a href="#gt_chrcount" title="gt_ChrCount()"><code>gt_ChrCount()</code></a>
<a href="#gt_chrfirst" title="gt_ChrFirst()"><code>gt_ChrFirst()</code></a>
<a href="#gt_chrtotal" title="gt_ChrTotal()"><code>gt_ChrTotal()</code></a>
<a href="#gt_clrflag" title="gt_ClrFlag()"><code>gt_ClrFlag()</code></a>
<a href="#gt_isflag" title="gt_IsFlag()"><code>gt_IsFlag()</code></a>
<a href="#gt_newflag" title="gt_NewFlag()"><code>gt_NewFlag()</code></a>
<a href="#gt_setflag" title="gt_SetFlag()"><code>gt_SetFlag()</code></a>
<a href="#gt_strcount" title="gt_StrCount()"><code>gt_StrCount()</code></a>
<a href="#gt_strcspn" title="gt_StrCSPN()"><code>gt_StrCSPN()</code></a>
<a href="#gt_strdiff" title="gt_StrDiff()"><code>gt_StrDiff()</code></a>
<a href="#gt_strexpand" title="gt_StrExpand()"><code>gt_StrExpand()</code></a>
<a href="#gt_strleft" title="gt_StrLeft()"><code>gt_StrLeft()</code></a>
<a href="#gt_strpbrk" title="gt_StrPBRK()"><code>gt_StrPBRK()</code></a>
<a href="#gt_strright" title="gt_StrRight()"><code>gt_StrRight()</code></a>
</aside>
<main>
<section>
<h4><a href="#gt_clrflag" class="d-id" id="gt_clrflag" title="∞"><code>gt_ClrFlag()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/bitflags.c#L76" class="d-so" title="contrib/hbgt/bitflags.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_ClrFlag">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_ClrFlag">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Set a number of flags to FALSE in a bit flag string.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_ClrFlag( <cFlagString>, [<nStart>], [<nEnd>] ) → cFlagString</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cFlagString</code> is a bit flag string created with <code><a href="#gt_newflag">gt_NewFlag()</a></code></div>
<div><code>nStart</code> is the starting flag. This is an optional numeric value. If not supplied it defaults to 1.</div>
<div><code>nEnd</code> is the ending flag. This is an optional numeric value. If not supplied it defaults to <code>nStart</code>.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The bit map string with the new flag settings.</div>
<div class="d-d">Description</div>
<div class="d-it"><code>gt_ClrFlag()</code> is used to turn flags within the flag string off.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL cFlags := gt_NewFlag( 20 ) // Create a bit flag string for 20
// logical values.
// Now, turn them all on.
? hb_StrToHex( cFlags := gt_SetFlag( cFlags, 1, 20 ) )
// Now set flags 10 to 15 to false.
? hb_StrToHex( cFlags := gt_ClrFlag( cFlags, 10, 15 ) )
// And set flag 18 to false.
? hb_StrToHex( cFlags := gt_ClrFlag( cFlags, 18 ) )
// And set flag 1 to false.
? hb_StrToHex( cFlags := gt_ClrFlag( cFlags ) )
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">General</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#gt_isflag">gt_IsFlag()</a></code>, <code><a href="#gt_newflag">gt_NewFlag()</a></code>, <code><a href="#gt_setflag">gt_SetFlag()</a></code></div>
</section>
<section>
<h4><a href="#gt_isflag" class="d-id" id="gt_isflag" title="∞"><code>gt_IsFlag()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/bitflags.c#L109" class="d-so" title="contrib/hbgt/bitflags.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_IsFlag">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_IsFlag">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Test the setting of a flag in a bit flag string.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_IsFlag( <cFlagString>, [<nFlag>] ) → lSetting</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cFlagString</code> is a bit flag string created with <code><a href="#gt_newflag">gt_NewFlag()</a></code></div>
<div><code>nFlag</code> is the flag to be tested.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">A boolean value, TRUE if the flag is on, FALSE if it's off.</div>
<div class="d-d">Description</div>
<div class="d-it"><code>gt_IsFlag()</code> is used to test the state of a flag with a bit flag string.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// Print the setting of the flags in a flag string called <cDave>
LOCAL nFlag
FOR nFlag := 1 TO hb_BLen( cDave ) * 8
? "Flag number", nFlag, "==", gt_IsFlag( cDave, nFlag )
NEXT
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">General</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#gt_clrflag">gt_ClrFlag()</a></code>, <code><a href="#gt_newflag">gt_NewFlag()</a></code>, <code><a href="#gt_setflag">gt_SetFlag()</a></code></div>
</section>
<section>
<h4><a href="#gt_newflag" class="d-id" id="gt_newflag" title="∞"><code>gt_NewFlag()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/bitflags.c#L21" class="d-so" title="contrib/hbgt/bitflags.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_NewFlag">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_NewFlag">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Create a new bit flag string.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_NewFlag( <nFlagCount> ) → cFlagString</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nFlagCount</code> is the number of flags you wish to store.</div>
<div class="d-d">Returns</div>
<div class="d-it">A string to hold the bit flags. All flags are set to FALSE.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p><code>gt_NewFlag()</code> is used to construct a bit flag string. The bit flag functions can be used for storing a large number of logical values in a small space.</div>
<div><p>To create a bit flag string you need to pass <code>gt_NewFlag()</code> a value that is equal to or greater than the number of flags required (you may want to allow for future expansion). Each character in the string returned from <code>gt_NewFlag()</code> will hold 8 logical values.</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? hb_StrToHex( gt_NewFlag( 20 ) ) // Create a bit flag string for 20 logical values.
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">General</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#gt_clrflag">gt_ClrFlag()</a></code>, <code><a href="#gt_isflag">gt_IsFlag()</a></code>, <code><a href="#gt_setflag">gt_SetFlag()</a></code></div>
</section>
<section>
<h4><a href="#gt_setflag" class="d-id" id="gt_setflag" title="∞"><code>gt_SetFlag()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/bitflags.c#L43" class="d-so" title="contrib/hbgt/bitflags.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_SetFlag">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_SetFlag">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Set a number of flags to TRUE in a bit flag string.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_SetFlag( <cFlagString>, [<nStart>], [<nEnd>] ) → cFlagString</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cFlagString</code> is a bit flag string created with <code><a href="#gt_newflag">gt_NewFlag()</a></code></div>
<div><code>nStart</code> is the starting flag. This is an optional numeric value. If not supplied it defaults to 1.</div>
<div><code>nEnd</code> is the ending flag. This is an optional numeric value. If not supplied it defaults to <code>nStart</code>.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The bit map string with the new flag settings.</div>
<div class="d-d">Description</div>
<div class="d-it"><code>gt_SetFlag()</code> is used to turn flags within the flag string on.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL cFlags := gt_NewFlag( 20 ) // Create a bit flag string for 20
// logical values.
// Now set flags 10 to 15 to true.
? hb_StrToHex( cFlags := gt_SetFlag( cFlags, 10, 15 ) )
// And set flag 18 to true.
? hb_StrToHex( cFlags := gt_SetFlag( cFlags, 18 ) )
// And set flag 1 to true.
? hb_StrToHex( cFlags := gt_SetFlag( cFlags ) )
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">General</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#gt_clrflag">gt_ClrFlag()</a></code>, <code><a href="#gt_isflag">gt_IsFlag()</a></code>, <code><a href="#gt_newflag">gt_NewFlag()</a></code></div>
</section>
<section>
<h4><a href="#gt_asciisum" class="d-id" id="gt_asciisum" title="∞"><code>gt_AsciiSum()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/asciisgt.c#L10" class="d-so" title="contrib/hbgt/asciisgt.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_AsciiSum">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_AsciiSum">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Sum the ASCII values in a string.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_AsciiSum( <cStr> ) → nSum</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cStr</code> - The string to sum</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nSum</code> - The sum of all ASCII values in <code>cStr</code>.</div>
<div class="d-d">Description</div>
<div class="d-it">Sum the ASCII value of every character in the passed string and return the result.</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_ascpos" class="d-id" id="gt_ascpos" title="∞"><code>gt_AscPos()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/ascposgt.c#L11" class="d-so" title="contrib/hbgt/ascposgt.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_AscPos">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_AscPos">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return the ASCII value of a specified character in a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_AscPos( <cStr>, <nPos> ) → nAscVal</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr</code> - The string</div>
<div><code>nPos</code> - The position in <code>cStr</code></div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nAscVal</code> - The ASCII value of <code>hb_BSubStr( <cStr>, <nPos>, 1 )</code></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return the ASCII value of a specified character in a string Equivalent (but much faster) to</div>
<pre><code class="language-c">hb_BCode( hb_BSubStr( cStr, nPos, 1 ) )
</code></pre>
<div><p>NOTE:</div>
<div><p>invalid parameters will return -1 <code>nPos > hb_BLen( cStr )</code> will return -2</div>
<div><p>This last behaviour is different to the Funcky function of the same name. I changed the behaviour because some of the strings I process contain embedded <code>NUL</code>s.</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? hb_BChar( gt_AscPos( "the cat sat on the mat", 3 ) ) // --> "e"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_atdiff" class="d-id" id="gt_atdiff" title="∞"><code>gt_AtDiff()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/atdiff.c#L11" class="d-so" title="contrib/hbgt/atdiff.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_AtDiff">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_AtDiff">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return the position where two strings begin to differ</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_AtDiff( <cStr1>, <cStr2> ) → nPos</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr1</code> - A character string to compare</div>
<div><code>cStr2</code> - The string to compare with</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nPos</code> - The position in <code>cStr2</code> where <code>cStr1</code> begins to differ</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return the position in <code>cStr2</code> where <code>cStr1</code> begins to differ. If the strings differ in the first character <code>gt_AtDiff()</code> will return 1. If the two strings are identical (or identical up to the last character in <code>cStr2</code>) the function will return 0.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return -1</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_AtDiff( "the cat", "the rat" ) // --> 5
? gt_AtDiff( "the cat", "the " ) // --> 0
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_chareven" class="d-id" id="gt_chareven" title="∞"><code>gt_CharEven()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/chareven.c#L11" class="d-so" title="contrib/hbgt/chareven.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_CharEven">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_CharEven">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return a string of all the characters in even positions</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_CharEven( <cStr> ) → cRet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cStr</code> - A character string to extract chars from</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>cRet</code> - A string of all the chars in even positions</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return a string consisting of all the characters in even positions in <code>cStr1</code>.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return ""</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_CharEven( "abcdefghijklm" ) // --> "bdfhjl"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_charmix" class="d-id" id="gt_charmix" title="∞"><code>gt_CharMix()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/charmixg.c#L11" class="d-so" title="contrib/hbgt/charmixg.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_CharMix">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_CharMix">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Amalgamate two strings to form the return value</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_CharMix( <cStr1>, <cStr2> ) → cRet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr1</code> - A character string to mix</div>
<div><code>cStr2</code> - A character string to mix with</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>cRet</code> - A string consisting of all the characters in <code>cStr1</code></div>
<div>mixed with all the characters in <code>cStr2</code></div>
</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return a string consisting of all the characters in <code>cStr1</code> mixed with the characters from <code>cStr2</code>.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return ""</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_CharMix( "abc", "123" ) // --> "a1b2c3"
? gt_CharMix( "abcde", "123" ) // --> "a1b2c3de"
? gt_CharMix( "abc", "12345" ) // --> "a1b2c345"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_charodd" class="d-id" id="gt_charodd" title="∞"><code>gt_CharOdd()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/charodd.c#L11" class="d-so" title="contrib/hbgt/charodd.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_CharOdd">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_CharOdd">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return a string of all the characters in odd positions</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_CharOdd( <cStr> ) → cRet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cStr</code> - A character string to extract chars from</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>cRet</code> - A string of all the chars in odd positions</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return a string consisting of all the characters in odd positions in <code>cStr1</code>.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return ""</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_CharOdd( "abcdefghijklm" ) // --> "acegikm"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_chrcount" class="d-id" id="gt_chrcount" title="∞"><code>gt_ChrCount()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/chrcount.c#L11" class="d-so" title="contrib/hbgt/chrcount.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_ChrCount">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_ChrCount">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Count the number of times a character appears in a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_ChrCount( <cChr>, <cStr> ) → nFreq</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cChr</code> - The character to find the frequency of</div>
<div><code>cStr</code> - The string in which to find the character</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nFreq</code> - The number of times <code>cChr</code> occurs in <code>cStr</code></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p><code>gt_ChrCount()</code> counts how many times a specified character appears in a string.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return -1</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_ChrCount( "t", "the cat sat on the mat" ) // --> 4
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_chrfirst" class="d-id" id="gt_chrfirst" title="∞"><code>gt_ChrFirst()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/chrfirst.c#L11" class="d-so" title="contrib/hbgt/chrfirst.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_ChrFirst">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_ChrFirst">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find which character occurs first in a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_ChrFirst( <cChars>, <cStr> ) → nAsc</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cChars</code> - The set of characters to find</div>
<div><code>cStr</code> - The input string</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>nAsc</code> - The ASCII value of the first character in <code>cChars</code></div>
<div>which appears first in <code>cStr</code></div>
</div>
<div class="d-d">Description</div>
<div class="d-it">Return the ASCII value of a character in <code>cChars</code> which appears first in <code>cStr</code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? hb_BChar( gt_ChrFirst( "sa ", "This is a test" ) ) // --> "s"
? hb_BChar( gt_ChrFirst( "et" , "This is a test" ) ) // --> "t"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_chrtotal" class="d-id" id="gt_chrtotal" title="∞"><code>gt_ChrTotal()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/chrtotal.c#L11" class="d-so" title="contrib/hbgt/chrtotal.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_ChrTotal">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_ChrTotal">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find number of times a set of characters appears in a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_ChrTotal( <cChrs>, <cStr> ) → nTotOcc</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cChrs</code> - The set of characters</div>
<div><code>cStr</code> - The string to search</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>nTotOcc</code> - The number of times the characters specified in</div>
<div><code>cChrs</code> appears in <code>cStr</code></div>
</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Returns the number of occurrences of characters belonging to the set <code>cChrs</code> in the string <code>cStr</code>. If no characters in <code>cChrs</code> appears in <code>cStr</code> <code>gt_ChrTotal()</code> will return 0.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return -1</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL cString := "the cat sat on the mat"
? gt_ChrTotal( "tae", cString ) // --> 10
? gt_ChrTotal( "zqw", cString ) // --> 0
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strcount" class="d-id" id="gt_strcount" title="∞"><code>gt_StrCount()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strcount.c#L11" class="d-so" title="contrib/hbgt/strcount.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrCount">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrCount">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Count the number of times a substring appears in a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrCount( <cChrs>, <cStr> ) → nFreq</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cChrs</code> - The substring to find the frequency of</div>
<div><code>cStr</code> - The string in which to find the character</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nFreq</code> - The number of times <code>cChrs</code> occurs in <code>cStr</code></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p><code>gt_StrCount()</code> counts how many times a specified substring appears in a string. If the substring does NOT appear in <code>cStr</code> this function will return 0. If the substring is a single character use <code><a href="#gt_chrcount">gt_ChrCount()</a></code> as it will be faster.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return -1</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrCount( "the", "the cat sat on the mat" ) // --> 2
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strcspn" class="d-id" id="gt_strcspn" title="∞"><code>gt_StrCSPN()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strcspn.c#L11" class="d-so" title="contrib/hbgt/strcspn.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrCSPN">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrCSPN">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return length of prefix in string of chars NOT in set.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrCSPN( <cString>, <cSet> ) → nLength</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cString</code> - The string to find the prefix in</div>
<div><code>cSet</code> - The set of characters</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nLength</code> - The length of a string up to a character in the set</div>
<div class="d-d">Description</div>
<div class="d-it">Return the number of characters in the leading segment of a string that consists solely of characters NOT in the set.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrCSPN( "this is a test", "as " ) // --> 3
? gt_StrCSPN( "this is a test", "elnjpq" ) // --> 11
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strdiff" class="d-id" id="gt_strdiff" title="∞"><code>gt_StrDiff()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strdiffg.c#L11" class="d-so" title="contrib/hbgt/strdiffg.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrDiff">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrDiff">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return a string where it begins to differ from another</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrDiff( <cStr1>, <cStr2> ) → cRet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr1</code> - A character string to compare</div>
<div><code>cStr2</code> - The string to compare with</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>cRet</code> - A string beginning at the position in <code>cStr2</code> where</div>
<div><code>cStr1</code> begins to differ from <code>cStr1</code></div>
</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return a string beginning at the position in <code>cStr2</code> where <code>cStr1</code> begins to differ from <code>cStr1</code>. If the two strings are identical (or identical up to the last character in <code>cStr2</code>) the function will return "".</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return ""</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrDiff( "the cat", "the rat" ) // --> "rat"
? gt_StrDiff( "the cat", "the " ) // --> ""
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strexpand" class="d-id" id="gt_strexpand" title="∞"><code>gt_StrExpand()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strexpan.c#L11" class="d-so" title="contrib/hbgt/strexpan.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrExpand">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrExpand">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Insert fillers between characters in a passed string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrExpand( <cStr>, [<nNum>], [<cChar>] ) → cRet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr1</code> - A character string to insert chars into</div>
<div><code>nNum</code> - The number of fill characters to insert (default 1)</div>
<div><code>cChar</code> - The fill character (default space)</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>cRet</code> - The input string with fill characters inserted between</div>
<div>every character in the original.</div>
</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Inserts fill characters into a string.</div>
<div><p>NOTE:</div>
<div><p>invalid parameters will return ""</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrExpand( "abc" ) // --> "a b c"
? gt_StrExpand( "abc", 2 ) // --> "a b c"
? gt_StrExpand( "abc", 2, '|' ) // --> "a||b||c"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strleft" class="d-id" id="gt_strleft" title="∞"><code>gt_StrLeft()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strleft.c#L11" class="d-so" title="contrib/hbgt/strleft.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrLeft">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrLeft">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find length of prefix of a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrLeft( <cStr>, <cChars> ) → nLen</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr</code> - The input string</div>
<div><code>cChars</code> - The set of characters to find</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nLen</code> - The length of the prefix found.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return the length of the leading segment in the passed string <code>cStr</code> that consists solely of the characters in the character set <code>cChars</code>.</div>
<div><p>If no characters in the the search set are found, the function shall return 0</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrLeft( "this is a test", "hsit " ) // --> 8
? gt_StrLeft( "this is a test", "hit a" ) // --> 3
? gt_StrLeft( "this is a test", "zxy" ) // --> 0
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strpbrk" class="d-id" id="gt_strpbrk" title="∞"><code>gt_StrPBRK()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strpbrk.c#L11" class="d-so" title="contrib/hbgt/strpbrk.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrPBRK">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrPBRK">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Return string after 1st char from a set</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrPBRK( <cStr>, <cSet> ) → cString</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr</code> - The input string</div>
<div><code>cSet</code> - The set of characters to find</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>cString</code> - The input string after the first occurrence of any</div>
<div>character from <code>cSet</code></div>
</div>
<div class="d-d">Description</div>
<div class="d-it">Return a string after the first occurrence of any character from the input set <code>cSet</code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrPBRK( "This is a test", "sa " ) // --> "s is a test"
? gt_StrPBRK( "This is a test", "et" ) // --> "test"
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
<section>
<h4><a href="#gt_strright" class="d-id" id="gt_strright" title="∞"><code>gt_StrRight()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbgt/strright.c#L11" class="d-so" title="contrib/hbgt/strright.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=gt_StrRight">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+gt_StrRight">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbgt/doc/en/hbgt.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find length of a suffix of a string</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>gt_StrRight( <cStr>, <cChars> ) → nLen</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cStr</code> - The input string</div>
<div><code>cChars</code> - The set of characters to find</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nLen</code> - The length of the prefix found.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Return the length of the trailing segment in the passed string <code>cStr</code> that consists solely of the characters in the character set <code>cChars</code>.</div>
<div><p>If no characters in the the search set are found, the function shall return 0</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? gt_StrRight( "this is a test", "teas " ) // --> 8
? gt_StrRight( "this is a test", "tes h" ) // --> 5
? gt_StrRight( "this is a test", "zxy" ) // --> 0
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">Not applicable</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbgt</div>
<div class="d-d">Tag</div>
<div class="d-it">String Tools</div>
</section>
</main>
<footer>
<div>Generated by hbdoc on 2020-10-15 00:54 UTC</div>
<div>Based on revision <a href="https://github.com/vszakats/hb/tree/096e855">096e855</a></div>
<div>Content processing, layout & design © 2020 <a href="https://vsz.me/hb">vszakats</a></div>
</footer>
<script>
/**
* Minified by jsDelivr using Terser v3.14.1.
* Original file: /gh/PrismJS/[email protected]/prism.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,a=0,n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):Array.isArray(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++a}),e.__id},clone:function e(t,a){var r,s,i=n.util.type(t);switch(a=a||{},i){case"Object":if(s=n.util.objId(t),a[s])return a[s];for(var l in r={},a[s]=r,t)t.hasOwnProperty(l)&&(r[l]=e(t[l],a));return r;case"Array":return s=n.util.objId(t),a[s]?a[s]:(r=[],a[s]=r,t.forEach(function(t,n){r[n]=e(t,a)}),r);default:return t}}},languages:{extend:function(e,t){var a=n.util.clone(n.languages[e]);for(var r in t)a[r]=t[r];return a},insertBefore:function(e,t,a,r){var s=(r=r||n.languages)[e],i={};for(var l in s)if(s.hasOwnProperty(l)){if(l==t)for(var o in a)a.hasOwnProperty(o)&&(i[o]=a[o]);a.hasOwnProperty(l)||(i[l]=s[l])}var u=r[e];return r[e]=i,n.languages.DFS(n.languages,function(t,a){a===u&&t!=e&&(this[t]=i)}),i},DFS:function e(t,a,r,s){s=s||{};var i=n.util.objId;for(var l in t)if(t.hasOwnProperty(l)){a.call(t,l,t[l],r||l);var o=t[l],u=n.util.type(o);"Object"!==u||s[i(o)]?"Array"!==u||s[i(o)]||(s[i(o)]=!0,e(o,a,l,s)):(s[i(o)]=!0,e(o,a,null,s))}}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,a){var r={callback:a,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",r);for(var s,i=e.querySelectorAll(r.selector),l=0;s=i[l++];)n.highlightElement(s,!0===t,r.callback)},highlightElement:function(a,r,s){for(var i,l="none",o=a;o&&!t.test(o.className);)o=o.parentNode;o&&(l=(o.className.match(t)||[,"none"])[1].toLowerCase(),i=n.languages[l]),a.className=a.className.replace(t,"").replace(/\s+/g," ")+" language-"+l,a.parentNode&&(o=a.parentNode,/pre/i.test(o.nodeName)&&(o.className=o.className.replace(t,"").replace(/\s+/g," ")+" language-"+l));var u={element:a,language:l,grammar:i,code:a.textContent},c=function(e){u.highlightedCode=e,n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,n.hooks.run("after-highlight",u),n.hooks.run("complete",u),s&&s.call(u.element)};if(n.hooks.run("before-sanity-check",u),u.code)if(n.hooks.run("before-highlight",u),u.grammar)if(r&&e.Worker){var g=new Worker(n.filename);g.onmessage=function(e){c(e.data)},g.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(n.highlight(u.code,u.grammar,u.language));else c(n.util.encode(u.code));else n.hooks.run("complete",u)},highlight:function(e,t,a){var s={code:e,grammar:t,language:a};return n.hooks.run("before-tokenize",s),s.tokens=n.tokenize(s.code,s.grammar),n.hooks.run("after-tokenize",s),r.stringify(n.util.encode(s.tokens),s.language)},matchGrammar:function(e,t,a,s,i,l,o){for(var u in a)if(a.hasOwnProperty(u)&&a[u]){if(u==o)return;var c=a[u];c="Array"===n.util.type(c)?c:[c];for(var g=0;g<c.length;++g){var d=c[g],p=d.inside,m=!!d.lookbehind,f=!!d.greedy,h=0,b=d.alias;if(f&&!d.pattern.global){var y=d.pattern.toString().match(/[imuy]*$/)[0];d.pattern=RegExp(d.pattern.source,y+"g")}d=d.pattern||d;for(var F=s,v=i;F<t.length;v+=t[F].length,++F){var k=t[F];if(t.length>e.length)return;if(!(k instanceof r)){if(f&&F!=t.length-1){if(d.lastIndex=v,!(S=d.exec(e)))break;for(var w=S.index+(m?S[1].length:0),A=S.index+S[0].length,x=F,P=v,$=t.length;x<$&&(P<A||!t[x].type&&!t[x-1].greedy);++x)w>=(P+=t[x].length)&&(++F,v=P);if(t[F]instanceof r)continue;_=x-F,k=e.slice(v,P),S.index-=v}else{d.lastIndex=0;var S=d.exec(k),_=1}if(S){m&&(h=S[1]?S[1].length:0);A=(w=S.index+h)+(S=S[0].slice(h)).length;var j=k.slice(0,w),C=k.slice(A),E=[F,_];j&&(++F,v+=j.length,E.push(j));var N=new r(u,p?n.tokenize(S,p):S,b,S,f);if(E.push(N),C&&E.push(C),Array.prototype.splice.apply(t,E),1!=_&&n.matchGrammar(e,t,a,F,v,!0,u),l)break}else if(l)break}}}}},tokenize:function(e,t){var a=[e],r=t.rest;if(r){for(var s in r)t[s]=r[s];delete t.rest}return n.matchGrammar(e,a,t,0,0,!1),a},hooks:{all:{},add:function(e,t){var a=n.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=n.hooks.all[e];if(a&&a.length)for(var r,s=0;r=a[s++];)r(t)}},Token:r};function r(e,t,a,n,r){this.type=e,this.content=t,this.alias=a,this.length=0|(n||"").length,this.greedy=!!r}if(e.Prism=n,r.stringify=function(e,t){if("string"==typeof e)return e;if(Array.isArray(e))return e.map(function(e){return r.stringify(e,t)}).join("");var a={type:e.type,content:r.stringify(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};if(e.alias){var s=Array.isArray(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(a.classes,s)}n.hooks.run("wrap",a);var i=Object.keys(a.attributes).map(function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(i?" "+i:"")+">"+a.content+"</"+a.tag+">"},!e.document)return e.addEventListener?(n.disableWorkerMessageHandler||e.addEventListener("message",function(t){var a=JSON.parse(t.data),r=a.language,s=a.code,i=a.immediateClose;e.postMessage(n.highlight(s,n.languages[r],r)),i&&e.close()},!1),n):n;var s=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return s&&(n.filename=s.src,n.manual||s.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),n}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var a={};a["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",r)}}),Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var a=e.languages.markup;a&&(a.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:a.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},a.tag))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){for(var a,n=e.getAttribute("data-src"),r=e,s=/\blang(?:uage)?-([\w-]+)\b/i;r&&!s.test(r.className);)r=r.parentNode;if(r&&(a=(e.className.match(s)||[,""])[1]),!a){var i=(n.match(/\.(\w+)$/)||[,""])[1];a=t[i]||i}var l=document.createElement("code");l.className="language-"+a,e.textContent="",l.textContent="Loading…",e.appendChild(l);var o=new XMLHttpRequest;o.open("GET",n,!0),o.onreadystatechange=function(){4==o.readyState&&(o.status<400&&o.responseText?(l.textContent=o.responseText,Prism.highlightElement(l),e.setAttribute("data-src-loaded","")):o.status>=400?l.textContent="✖ Error "+o.status+" while fetching file: "+o.statusText:l.textContent="✖ Error: File does not exist or is empty")},o.send(null)}}),Prism.plugins.toolbar&&Prism.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var a=t.getAttribute("data-src"),n=document.createElement("a");return n.textContent=t.getAttribute("data-download-link-label")||"Download",n.setAttribute("download",""),n.href=a,n}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}));
//# sourceMappingURL=/sm/a264a97a2f20660266cd3a454fb3decaf16e29e2a9ecf5259f4176ddbec26e70.map
</script>
<script>
Prism.languages.c=Prism.languages.extend("clike",{"class-name":{pattern:/(\b(?:enum|struct)\s+)\w+/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/,number:/(?:\b0x(?:[\da-f]+\.?[\da-f]*|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean;
</script>
<script src="jquery.min.js"></script>
<script src="https://os.allcom.pl/hb/static/playground-embed.js" crossorigin="anonymous"></script>
<script src="https://os.allcom.pl/hb/static/play.js" crossorigin="anonymous"></script>
<script>
'use strict';
$(function() {
initPlayground(hbioTransport());
});
</script>