-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathScriptString2.html
4706 lines (4697 loc) · 193 KB
/
ScriptString2.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
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
<!DOCTYPE html>
<html lang="en-US">
<!-- Bob Simons
replaced <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> with 2 lines above
removed type="text/javascript" from <script ...>
changed the reference to stylesheet.css to JavaDocStylesheet.css,
changed the reference to script.js to JavaDocScript.js,
changed all "<a name=" to "<a id="
replace all tt> with kbd>
removed references to ../../../com/cohort/util/ScriptCalendar2.html (which are followed by #methodName)
removed border="0" cellpadding="3" cellspacing="0" from <table>'s
removed all <dl> ... </dl> with references to "See Also: Constant Field Values",
removed the top and bottom NAVBAR sections.
made changes suggested by W3C html validator -->
<!-- NewPage -->
<head>
<!-- Generated by javadoc (1.8.0_222) on Mon Dec 02 11:38:40 PST 2019 -->
<title>ScriptString2</title>
<meta name="date" content="2019-12-02">
<link rel="stylesheet" type="text/css" href="JavaDocStylesheet.css" title="Style">
<script src="JavaDocScript.js"></script>
</head>
<body>
<script><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ScriptString2";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9,"i88":9,"i89":9,"i90":9,"i91":9,"i92":9,"i93":9,"i94":9,"i95":9,"i96":9,"i97":9,"i98":9,"i99":9,"i100":9,"i101":9,"i102":9,"i103":9,"i104":9,"i105":9,"i106":9,"i107":9,"i108":9,"i109":9,"i110":9,"i111":9,"i112":9,"i113":9,"i114":9,"i115":9,"i116":9,"i117":9,"i118":9,"i119":9,"i120":9,"i121":9,"i122":9,"i123":9,"i124":9,"i125":9,"i126":9,"i127":9,"i128":9,"i129":9,"i130":9,"i131":9,"i132":9,"i133":9,"i134":9,"i135":9,"i136":9,"i137":9,"i138":9,"i139":9,"i140":9,"i141":9,"i142":9,"i143":9,"i144":9,"i145":9,"i146":9,"i147":9,"i148":9,"i149":9,"i150":9,"i151":9,"i152":9,"i153":9,"i154":9,"i155":9,"i156":9,"i157":9,"i158":9,"i159":9,"i160":9,"i161":9,"i162":9,"i163":9,"i164":9,"i165":9,"i166":9,"i167":9,"i168":9,"i169":9,"i170":9,"i171":9,"i172":9,"i173":9,"i174":9,"i175":9,"i176":9,"i177":9,"i178":9,"i179":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ======== START OF CLASS DATA ======== -->
<!-- Bob Simons
changed the reference to stylesheet.css to JavaDocStylesheet.css,
changed the reference to script.js to JavaDocScript.js,
and removed the NAVBAR section. -->
<div class="header">
<div class="subTitle">com.cohort.util</div>
<h2 title="Class ScriptString2" class="title">Class ScriptString2</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.cohort.util.ScriptString2</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">ScriptString2</span>
extends java.lang.Object</pre>
<div class="block">This class makes about half of the static methods
in com.cohort.String2 accessible to JexlScript scripts as "String2.<i>name</i>()" methods.
All of the constants and methods related to files, system information, ArrayList, Enumeration, Vector,
BitSet, Map, interactive computing, etc., are not included here.
<p>The underlying String2 class is Copyright (c) 2005 Robert Simons (CoHortSoftware@gmail.com).
See the MIT/X-like license in com/cohort/util/LICENSE.txt.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href=".#ScriptString2--">ScriptString2</a></span>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#allDigits-java.lang.String-">allDigits</a></span>(java.lang.String s)</code>
<div class="block">0..9.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#annotatedString-java.lang.String-">annotatedString</a></span>(java.lang.String s)</code>
<div class="block">This converts non-isPrintable characters to "[#]".</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#arrayToCSSVString-java.lang.Object-">arrayToCSSVString</a></span>(java.lang.Object value)</code>
<div class="block">This returns a nice String representation of the attribute value
(which should be a String or an array of primitives).</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#binaryFindClosest-java.lang.String:A-java.lang.String-">binaryFindClosest</a></span>(java.lang.String[] sar,
java.lang.String s)</code>
<div class="block">Find the closest element to s in an ascending sorted array.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#binaryFindFirstGE-java.lang.String:A-java.lang.String-">binaryFindFirstGE</a></span>(java.lang.String[] sar,
java.lang.String s)</code>
<div class="block">Find the first element which is >= s in an ascending sorted array.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#binaryFindLastLE-java.lang.String:A-java.lang.String-">binaryFindLastLE</a></span>(java.lang.String[] sar,
java.lang.String s)</code>
<div class="block">Find the last element which is <= s in an ascending sorted array.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#camelCaseToTitleCase-java.lang.String-">camelCaseToTitleCase</a></span>(java.lang.String s)</code>
<div class="block">This converts "camelCase99String" to "Camel Case 99 String"</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#caseInsensitiveIndexOf-java.lang.Object:A-java.lang.String-">caseInsensitiveIndexOf</a></span>(java.lang.Object[] ar,
java.lang.String s)</code>
<div class="block">This finds the first element in Object[]
where ar[i].toString().toLowerCase() equals to s.toLowerCase().</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#center-java.lang.String-int-">center</a></span>(java.lang.String s,
int length)</code>
<div class="block">Returns a String 'length' long, with 's' centered
(using spaces as the added characters) within the resulting String.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#charToJsonString-char-int-boolean-">charToJsonString</a></span>(char ch,
int firstUEncodedChar,
boolean encodeNewline)</code>
<div class="block">This encodes one char to the Json encoding.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#combineSpaces-java.lang.String-">combineSpaces</a></span>(java.lang.String s)</code>
<div class="block">Returns a string where all cases of more than one space are
replaced by one space.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#commonUnicodeToPlainText-java.lang.String-">commonUnicodeToPlainText</a></span>(java.lang.String s)</code> </td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#countAll-java.lang.String-char-">countAll</a></span>(java.lang.String s,
char findS)</code>
<div class="block">This counts all occurrences of <kbd>findS</kbd> in s.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#countAll-java.lang.String-java.lang.String-">countAll</a></span>(java.lang.String s,
java.lang.String findS)</code>
<div class="block">This counts all occurrences of <kbd>findS</kbd> in s.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#csvToDoubleArray-java.lang.String-">csvToDoubleArray</a></span>(java.lang.String csv)</code>
<div class="block">This converts a comma-separated-value String into a double[].</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#csvToIntArray-java.lang.String-">csvToIntArray</a></span>(java.lang.String csv)</code>
<div class="block">This converts a comma-separated-value String into an int[].</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#differentLine-java.lang.String-java.lang.String-">differentLine</a></span>(java.lang.String oldS,
java.lang.String newS)</code>
<div class="block">Given two strings with internal newlines, oldS and newS, this a message
indicating where they differ.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#encodeFileNameSafe-java.lang.String-">encodeFileNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This is different from String2.modifyToBeFileNameSafe --
this encodes non-fileNameSafe characters so little or no information is lost.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#encodeMatlabNameSafe-java.lang.String-">encodeMatlabNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This is like encodeFileNameSafe, but further restricts the name to
first character must be A-Z, a-z.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#extractAllCaptureGroupsAsStringArray-java.lang.String-java.lang.String-int-">extractAllCaptureGroupsAsStringArray</a></span>(java.lang.String s,
java.lang.String regex,
int captureGroupNumber)</code>
<div class="block">This repeatedly finds the regex and extracts the specified captureGroup.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#extractAllRegexes-java.lang.String-java.lang.String-">extractAllRegexes</a></span>(java.lang.String s,
java.lang.String regex)</code>
<div class="block">This returns all the sections of s that match regex.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#extractCaptureGroup-java.lang.String-java.lang.String-int-">extractCaptureGroup</a></span>(java.lang.String s,
java.lang.String regex,
int captureGroupNumber)</code>
<div class="block">This returns the specified capture group from s.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#extractRegex-java.lang.String-java.lang.String-int-">extractRegex</a></span>(java.lang.String s,
java.lang.String regex,
int fromIndex)</code>
<div class="block">This returns the first section of s (starting at fromIndex)
which matches regex.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#findInvalidUnicode-java.lang.String-java.lang.String-">findInvalidUnicode</a></span>(java.lang.String s,
java.lang.String alsoOK)</code>
<div class="block">This returns the index of the first non-Unicode character.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#findNth-java.lang.String-char-int-">findNth</a></span>(java.lang.String s,
char findS,
int nth)</code>
<div class="block">This returns the index of the nth occurrence of <kbd>findS</kbd> in s.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#findPrefix-java.lang.String:A-java.lang.String-int-">findPrefix</a></span>(java.lang.String[] prefixes,
java.lang.String longerString,
int startAt)</code>
<div class="block">This is like whichPrefix, but returns the found prefix (or null).</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#findWholeWord-java.lang.String-java.lang.String-">findWholeWord</a></span>(java.lang.String s,
java.lang.String word)</code>
<div class="block">This finds (case-sensitive) the first whole word instance of 'word' in s.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#fromJson-java.lang.String-">fromJson</a></span>(java.lang.String s)</code>
<div class="block">This returns the unJSON version of a JSON string
(surrounding "'s (if any) are removed and \\, \f, \n, \r, \t, \/, and \" are unescaped).</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#fromJsonNotNull-java.lang.String-">fromJsonNotNull</a></span>(java.lang.String s)</code>
<div class="block">This is like the other fromJson, but returns "" instead of null.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#fromNccsvChar-java.lang.String-">fromNccsvChar</a></span>(java.lang.String s)</code>
<div class="block">This converts an NCCSV encoded char to a true char
(surrounding "'s and ''s (if any) are removed and \\, \f, \n, \r, \t, \/, and \" are unescaped).</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#fromNccsvString-java.lang.String-">fromNccsvString</a></span>(java.lang.String s)</code>
<div class="block">This converts an NCCSV string to a true string
(surrounding "'s (if any) are removed and \\, \f, \n, \r, \t, \/, and \" are unescaped).</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#genEFormat10-double-">genEFormat10</a></span>(double d)</code>
<div class="block">This returns the number formatted with up to 10 digits to the left and right of
the decimal and trailing decimal 0's removed.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#genEFormat6-double-">genEFormat6</a></span>(double d)</code>
<div class="block">This returns the number formatted with up to 6 digits to the left and right of
the decimal and trailing decimal 0's removed.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#genHTMLFormat10-double-">genHTMLFormat10</a></span>(double d)</code>
<div class="block">This is like genEFormat10, but the scientific notation format
is, e.g., 8.9509244321x10<sup>-5</sup>.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#genHTMLFormat6-double-">genHTMLFormat6</a></span>(double d)</code>
<div class="block">This is like genEFormat6, but the scientific notation format
is, e.g., 8.954321x10<sup>-5</sup>.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#genX10Format10-double-">genX10Format10</a></span>(double d)</code>
<div class="block">This is like genEFormat10, but the scientific notation format
is, e.g., 8.9509484321x10^-5.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#genX10Format6-double-">genX10Format6</a></span>(double d)</code>
<div class="block">This is like genEFormat6, but the scientific notation format
is, e.g., 8.954321x10^-5.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#getNMatchingCharacters-java.lang.String-java.lang.String-">getNMatchingCharacters</a></span>(java.lang.String s1,
java.lang.String s2)</code>
<div class="block">This determines the number of initial characters that match.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#ifJsonFromJson-java.lang.String-">ifJsonFromJson</a></span>(java.lang.String s)</code>
<div class="block">If the String is surrounded by ", this returns fromJson(s), else it returns s.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#ifSomethingConcat-java.lang.String-java.lang.String-java.lang.String-">ifSomethingConcat</a></span>(java.lang.String a,
java.lang.String separator,
java.lang.String b)</code>
<div class="block">This cleverly concatenates the 2 strings (with separator, as appropriate).</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-char:A-char-">indexOf</a></span>(char[] cArray,
char c)</code>
<div class="block">Finds the first instance of c in cArray.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-char:A-char-int-">indexOf</a></span>(char[] cArray,
char c,
int fromIndex)</code>
<div class="block">Finds the first instance of c at or after fromIndex (0..</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-double:A-double-">indexOf</a></span>(double[] dArray,
double d)</code>
<div class="block">Finds the first instance of d in dArray
(tested with Math2.almostEqual5).</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-double:A-double-int-">indexOf</a></span>(double[] dArray,
double d,
int fromIndex)</code>
<div class="block">Finds the first instance of d at or after fromIndex (0..</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-int:A-int-">indexOf</a></span>(int[] iArray,
int i)</code>
<div class="block">Finds the first instance of i in iArray.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-int:A-int-int-">indexOf</a></span>(int[] iArray,
int i,
int fromIndex)</code>
<div class="block">Finds the first instance of i at or after fromIndex (0..</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-java.lang.Object:A-java.lang.String-">indexOf</a></span>(java.lang.Object[] ar,
java.lang.String s)</code>
<div class="block">This finds the first element in Object[]
where the ar[i].toString value equals to s.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-java.lang.Object:A-java.lang.String-int-">indexOf</a></span>(java.lang.Object[] ar,
java.lang.String s,
int startAt)</code>
<div class="block">This finds the first element in Object[] (starting at element startAt)
where the ar[i].toString value equals s.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOf-java.lang.String-java.lang.String-int-">indexOf</a></span>(java.lang.String s,
java.lang.String car,
int fromIndex)</code>
<div class="block">This indexOf is a little different: it finds the first instance in s of any char in car.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOfChar-java.lang.String-char:A-int-">indexOfChar</a></span>(java.lang.String s,
char[] car,
int fromIndex)</code>
<div class="block">This indexOf is a little different: it finds the first instance in s of any char in car.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOfIgnoreCase-java.lang.String-java.lang.String-">indexOfIgnoreCase</a></span>(java.lang.String s,
java.lang.String find)</code>
<div class="block">Finds the first instance of 'find' at or after fromIndex (0..), ignoring case.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOfIgnoreCase-java.lang.String-java.lang.String-int-">indexOfIgnoreCase</a></span>(java.lang.String s,
java.lang.String find,
int fromIndex)</code>
<div class="block">Finds the first instance of 'find' at or after fromIndex (0..), ignoring case.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOfObject-java.lang.Object:A-java.lang.Object-">indexOfObject</a></span>(java.lang.Object[] ar,
java.lang.Object o)</code>
<div class="block">A variant of indexOfObject() that uses startAt=0.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#indexOfObject-java.lang.Object:A-java.lang.Object-int-">indexOfObject</a></span>(java.lang.Object[] ar,
java.lang.Object o,
int startAt)</code>
<div class="block">This finds the first element in Object[] (starting at element startAt)
where ar[i]==o.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isAsciiLetter-int-">isAsciiLetter</a></span>(int c)</code>
<div class="block">This returns true for A..Z, a..z.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isAsciiPrintable-int-">isAsciiPrintable</a></span>(int ch)</code>
<div class="block">returns true if ch is 32..126.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isAsciiPrintable-java.lang.String-">isAsciiPrintable</a></span>(java.lang.String s)</code>
<div class="block">Returns true if all of the characters in s are 32..126</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isDigit-int-">isDigit</a></span>(int c)</code>
<div class="block">0..9.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isDigitLetter-int-">isDigitLetter</a></span>(int c)</code>
<div class="block">Determines if the character is a digit or a letter.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isDoubleTrouble-java.lang.String-">isDoubleTrouble</a></span>(java.lang.String s)</code>
<div class="block">DON'T USE THIS; RELY ON THE FIXES AVAILABLE FOR JAVA:
EITHER THE LATEST VERSION OF JAVA OR THE
JAVA UPDATER TO FIX THE BUG ON EXISTING OLDER JAVA INSTALLATIONS
https://www.oracle.com/technetwork/java/javase/fpupdater-tool-readme-305936.html</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isEmailAddress-java.lang.String-">isEmailAddress</a></span>(java.lang.String email)</code>
<div class="block">This indicates if 'email' is a valid email address.</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isFileNameSafe-char-">isFileNameSafe</a></span>(char ch)</code>
<div class="block">This indicates if ch is a file-name-safe character (A-Z, a-z, 0-9, _, -, or .).</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isFileNameSafe-java.lang.String-">isFileNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This indicates if s has length >= 1 and
has just file-name-safe characters (0-9, A-Z, a-z, _, -, .).</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isHexDigit-int-">isHexDigit</a></span>(int c)</code>
<div class="block">0..9, a..f, A..F
Hex numbers are 0x followed by hexDigits.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isHexString-java.lang.String-">isHexString</a></span>(java.lang.String s)</code>
<div class="block">Returns true if all of the characters in s are hex digits.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isIDFirstLetter-int-">isIDFirstLetter</a></span>(int c)</code>
<div class="block">First letters for identifiers (e.g., variable names, method names) can be
all isLetter()'s plus $ and _.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isIso8859-java.lang.String-">isIso8859</a></span>(java.lang.String s)</code>
<div class="block">This returns true if the string contains only ISO 8859-1 characters (i.e., 0 - 255).</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isJsonpNameSafe-java.lang.String-">isJsonpNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This tests if s is a valid jsonp function name.</div>
</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isLetter-int-">isLetter</a></span>(int c)</code>
<div class="block">This includes hiASCII/ISO Latin 1/ISO 8859-1, but not extensive unicode characters.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isNumber-java.lang.String-">isNumber</a></span>(java.lang.String s)</code>
<div class="block">This tries to quickly determine if the string is a correctly
formatted number (including decimal, hexadecimal, octal, and "NaN" (any case)).</div>
</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isPrintable-int-">isPrintable</a></span>(int ch)</code>
<div class="block">This indicates if ch is printable with System.err.println() and
Graphics.drawString(); hence, it is a subset of 0..255.</div>
</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isPrintable-java.lang.String-">isPrintable</a></span>(java.lang.String s)</code>
<div class="block">Returns true if all of the characters in s are printable</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isRemote-java.lang.String-">isRemote</a></span>(java.lang.String dir)</code>
<div class="block">This returns true if the dir starts with http://, https://, ftp://, sftp://,
or smb://.</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isSomething-java.lang.String-">isSomething</a></span>(java.lang.String s)</code>
<div class="block">This returns true if s isn't null and s.trim().length() > 0.</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isSomething2-java.lang.String-">isSomething2</a></span>(java.lang.String s)</code>
<div class="block">This returns true if s isn't null, "", "-", "null", "nd", "N/A", "...", "???", etc.</div>
</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isUrl-java.lang.String-">isUrl</a></span>(java.lang.String url)</code>
<div class="block">This indicates if 'url' is probably a valid url.</div>
</td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isVariableNameSafe-java.lang.String-">isVariableNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This tests if s is a valid variableName:
first character must be (iso8859Letter|_).</div>
</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#isWhite-int-">isWhite</a></span>(int c)</code>
<div class="block">Whitespace characters are u0001 ..</div>
</td>
</tr>
<tr id="i78" class="altColor">
<td class="colFirst"><code>static double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#justFiniteValues-double:A-">justFiniteValues</a></span>(double[] dar)</code>
<div class="block">This returns a double[] with just the finite values from the original
array.</div>
</td>
</tr>
<tr id="i79" class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#justFiniteValues-int:A-">justFiniteValues</a></span>(int[] iar)</code>
<div class="block">This returns an int[] with just the non-Integer.MAX_VALUE values from the original
array.</div>
</td>
</tr>
<tr id="i80" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#justPrintable-java.lang.String-">justPrintable</a></span>(java.lang.String s)</code>
<div class="block">This returns the string with all non-isPrintable characters removed.</div>
</td>
</tr>
<tr id="i81" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#left-java.lang.String-int-">left</a></span>(java.lang.String s,
int length)</code>
<div class="block">Returns a String 'length' long, with 's' left-justified
(using spaces as the added characters) within the resulting String.</div>
</td>
</tr>
<tr id="i82" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineContaining-java.lang.Object:A-java.lang.String-">lineContaining</a></span>(java.lang.Object[] ar,
java.lang.String s)</code>
<div class="block">This finds the first element in Object[]
where the ar[i].toString value contains the substring s.</div>
</td>
</tr>
<tr id="i83" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineContaining-java.lang.Object:A-java.lang.String-int-">lineContaining</a></span>(java.lang.Object[] ar,
java.lang.String s,
int startAt)</code>
<div class="block">This finds the first element in Object[] (starting at element startAt)
where the ar[i].toString value contains the substring s.</div>
</td>
</tr>
<tr id="i84" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineContainingIgnoreCase-java.lang.Object:A-java.lang.String-int-">lineContainingIgnoreCase</a></span>(java.lang.Object[] ar,
java.lang.String s,
int startAt)</code>
<div class="block">This finds the first element in Object[] (starting at element startAt)
where the ar[i].toString value contains the substring s (ignoring
the case of ar and s).</div>
</td>
</tr>
<tr id="i85" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineStartsWith-java.lang.Object:A-java.lang.String-">lineStartsWith</a></span>(java.lang.Object[] ar,
java.lang.String s)</code>
<div class="block">This finds the first element in Object[] (starting at element 0)
where the ar[i].toString value starts with s.</div>
</td>
</tr>
<tr id="i86" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineStartsWith-java.lang.Object:A-java.lang.String-int-">lineStartsWith</a></span>(java.lang.Object[] ar,
java.lang.String s,
int startAt)</code>
<div class="block">This finds the first element in Object[] (starting at element startAt)
where the ar[i].toString value starts with s.</div>
</td>
</tr>
<tr id="i87" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineStartsWithIgnoreCase-java.lang.Object:A-java.lang.String-">lineStartsWithIgnoreCase</a></span>(java.lang.Object[] ar,
java.lang.String s)</code>
<div class="block">This variant of lineStartsWith startsAt index=0.</div>
</td>
</tr>
<tr id="i88" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#lineStartsWithIgnoreCase-java.lang.Object:A-java.lang.String-int-">lineStartsWithIgnoreCase</a></span>(java.lang.Object[] ar,
java.lang.String s,
int startAt)</code>
<div class="block">This is like lineStartsWith, but ignores case.</div>
</td>
</tr>
<tr id="i89" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#looselyContains-java.lang.String-java.lang.String-">looselyContains</a></span>(java.lang.String s,
java.lang.String find)</code>
<div class="block">This goes beyond indexOfIgnoreCase by looking after punctuation removed.</div>
</td>
</tr>
<tr id="i90" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#looselyEquals-java.lang.String-java.lang.String-">looselyEquals</a></span>(java.lang.String s1,
java.lang.String s2)</code>
<div class="block">This goes beyond equalsIgnoreCase by looking after punctuation removed.</div>
</td>
</tr>
<tr id="i91" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#makeString-char-int-">makeString</a></span>(char ch,
int length)</code>
<div class="block">This makes a new String of specified length, filled with ch.</div>
</td>
</tr>
<tr id="i92" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#makeValidUnicode-java.lang.String-java.lang.String-">makeValidUnicode</a></span>(java.lang.String s,
java.lang.String alsoOK)</code>
<div class="block">This makes s valid Unicode by converting invalid characters (e.g., #128)
with \\uhhhh (literally 2 backslashes, so no info is lost).</div>
</td>
</tr>
<tr id="i93" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#max-java.lang.String-java.lang.String-">max</a></span>(java.lang.String s1,
java.lang.String s2)</code>
<div class="block">This returns the string which sorts higher.</div>
</td>
</tr>
<tr id="i94" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#md5Hex-java.lang.String-">md5Hex</a></span>(java.lang.String password)</code>
<div class="block">This returns the MD5 hash digest of stringToUtf8Bytes(password) as a String of 32 lowercase hex digits.</div>
</td>
</tr>
<tr id="i95" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#md5Hex12-java.lang.String-">md5Hex12</a></span>(java.lang.String password)</code>
<div class="block">This returns the last 12 hex digits from md5Hex (or null if md5 is null),
broken into 3 blocks of 4 digits, separated by '_'.</div>
</td>
</tr>
<tr id="i96" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#min-java.lang.String-java.lang.String-">min</a></span>(java.lang.String s1,
java.lang.String s2)</code>
<div class="block">This returns the string which sorts lower.</div>
</td>
</tr>
<tr id="i97" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#modifyToBeASCII-java.lang.String-">modifyToBeASCII</a></span>(java.lang.String s)</code>
<div class="block">This converts the string to plain ascii (0..127).</div>
</td>
</tr>
<tr id="i98" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#modifyToBeFileNameSafe-java.lang.String-">modifyToBeFileNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This returns the string with just file-name-safe characters (0-9, A-Z, a-z, _, -, .).</div>
</td>
</tr>
<tr id="i99" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#modifyToBeVariableNameSafe-java.lang.String-">modifyToBeVariableNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This is like modifyToBeFileNameSafe, but restricts the name to:
first character must be (iso8859Letter|_).</div>
</td>
</tr>
<tr id="i100" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#noLongerThan-java.lang.String-int-">noLongerThan</a></span>(java.lang.String s,
int max)</code>
<div class="block">This returns a string no more than max characters long, throwing away the excess.</div>
</td>
</tr>
<tr id="i101" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#noLongerThanDots-java.lang.String-int-">noLongerThanDots</a></span>(java.lang.String s,
int max)</code>
<div class="block">This is like noLongerThan, but if truncated, s.substring(0, max-3) + "..." is returned.</div>
</td>
</tr>
<tr id="i102" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#noLongLines-java.lang.String-int-java.lang.String-">noLongLines</a></span>(java.lang.String s,
int maxLength,
java.lang.String spaces)</code>
<div class="block">If lines in s are >=maxLength characters, this inserts "\n"+spaces at the
previous non-DigitLetter + DigitLetter; or if none, this inserts "\n"+spaces at maxLength.</div>
</td>
</tr>
<tr id="i103" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#noLongLinesAtSpace-java.lang.String-int-java.lang.String-">noLongLinesAtSpace</a></span>(java.lang.String s,
int maxLength,
java.lang.String spaces)</code>
<div class="block">This is like noLongLines, but will only break at spaces.</div>
</td>
</tr>
<tr id="i104" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseBoolean-java.lang.String-">parseBoolean</a></span>(java.lang.String s)</code>
<div class="block">This converts a string to a boolean.</div>
</td>
</tr>
<tr id="i105" class="rowColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseBooleanToInt-java.lang.String-">parseBooleanToInt</a></span>(java.lang.String s)</code>
<div class="block">This converts a string to a boolean and then an int.</div>
</td>
</tr>
<tr id="i106" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseDouble-java.lang.String-">parseDouble</a></span>(java.lang.String s)</code>
<div class="block">Convert a string to a double.</div>
</td>
</tr>
<tr id="i107" class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseFloat-java.lang.String-">parseFloat</a></span>(java.lang.String s)</code>
<div class="block">Parse as a float with either "." or "," as the decimal point.</div>
</td>
</tr>
<tr id="i108" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseInt-java.lang.String-">parseInt</a></span>(java.lang.String s)</code>
<div class="block">Convert a string to an int.</div>
</td>
</tr>
<tr id="i109" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseInt-java.lang.String-int-">parseInt</a></span>(java.lang.String s,
int def)</code>
<div class="block">Like parseInt(s), but returns def if error).</div>
</td>
</tr>
<tr id="i110" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#parseLong-java.lang.String-">parseLong</a></span>(java.lang.String s)</code>
<div class="block">This converts String representation of a long.</div>
</td>
</tr>
<tr id="i111" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#passwordDigest-java.lang.String-java.lang.String-">passwordDigest</a></span>(java.lang.String algorithm,
java.lang.String password)</code>
<div class="block">This returns the hash digest of stringToUtf8Bytes(password) as a String of lowercase hex digits.</div>
</td>
</tr>
<tr id="i112" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#periodSpaceConcat-java.lang.String-java.lang.String-">periodSpaceConcat</a></span>(java.lang.String a,
java.lang.String b)</code>
<div class="block">This cleverly concatenates the 2 strings (with "", ".</div>
</td>
</tr>
<tr id="i113" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#quoteParameterIfNeeded-java.lang.String-">quoteParameterIfNeeded</a></span>(java.lang.String s)</code>
<div class="block">For command line parameters, this returns toJson(s) if the string is empty or contains
special characters or single or double quotes or backslash; otherwise it return s.</div>
</td>
</tr>
<tr id="i114" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#removeLeading-java.lang.String-char-">removeLeading</a></span>(java.lang.String s,
char ch)</code>
<div class="block">This removes leading ch's.</div>
</td>
</tr>
<tr id="i115" class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#removeNull-java.lang.String:A-">removeNull</a></span>(java.lang.String[] sar)</code>
<div class="block">This returns a String[] with just non-null strings
from the original array.</div>
</td>
</tr>
<tr id="i116" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#removeNullOrEmpty-java.lang.String:A-">removeNullOrEmpty</a></span>(java.lang.String[] sar)</code>
<div class="block">This returns a String[] with just non-null and non-"" strings
from the original array.</div>
</td>
</tr>
<tr id="i117" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#repeatedlyReplaceAll-java.lang.String-java.lang.String-java.lang.String-boolean-">repeatedlyReplaceAll</a></span>(java.lang.String s,
java.lang.String oldS,
java.lang.String newS,
boolean ignoreCase)</code>
<div class="block">This repeatedly replaces all oldS with newS.</div>
</td>
</tr>
<tr id="i118" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#replaceAll-java.lang.String-char-char-">replaceAll</a></span>(java.lang.String s,
char oldCh,
char newCh)</code>
<div class="block">Returns a string where all occurences of <kbd>oldCh</kbd> have
been replaced with <kbd>newCh</kbd>.</div>
</td>
</tr>
<tr id="i119" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#replaceAll-java.lang.String-java.lang.String-java.lang.String-">replaceAll</a></span>(java.lang.String s,
java.lang.String oldS,
java.lang.String newS)</code>
<div class="block">Returns a string where all occurences of <kbd>oldS</kbd> have
been replaced with <kbd>newS</kbd>.</div>
</td>
</tr>
<tr id="i120" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#replaceAllIgnoreCase-java.lang.String-java.lang.String-java.lang.String-">replaceAllIgnoreCase</a></span>(java.lang.String s,
java.lang.String oldS,
java.lang.String newS)</code>
<div class="block">Returns a string where all occurences of <kbd>oldS</kbd> have
been replaced with <kbd>newS</kbd>.</div>
</td>
</tr>
<tr id="i121" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#right-java.lang.String-int-">right</a></span>(java.lang.String s,
int length)</code>
<div class="block">Returns a String 'length' long, with 's' right-justified
(using spaces as the added characters) within the resulting String.</div>
</td>
</tr>
<tr id="i122" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#roundingParseInt-java.lang.String-">roundingParseInt</a></span>(java.lang.String s)</code>
<div class="block">Convert a string to an int, with rounding.</div>
</td>
</tr>
<tr id="i123" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#simpleMatlabNameSafe-java.lang.String-">simpleMatlabNameSafe</a></span>(java.lang.String s)</code>
<div class="block">This is like encodeMatlabNameSafe, but simpler and won't always retain all the info.</div>
</td>
</tr>
<tr id="i124" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href=".#split-java.lang.String-char-">split</a></span>(java.lang.String s,
char separator)</code>
<div class="block">This splits the string at the specified character.</div>
</td>
</tr>
<tr id="i125" class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>