This repository was archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathString.xml
More file actions
5708 lines (5685 loc) · 344 KB
/
String.xml
File metadata and controls
5708 lines (5685 loc) · 344 KB
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
<Type Name="String" FullName="Java.Lang.String">
<TypeSignature Language="C#" Value="public sealed class String : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable, Java.Lang.ICharSequence, Java.Lang.IComparable, System.Collections.Generic.IEnumerable<char>" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit String extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.IO.ISerializable, class Java.Lang.ICharSequence, class Java.Lang.IComparable, class System.Collections.Generic.IEnumerable`1<char>, class System.Collections.IEnumerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Java.Lang.String" />
<TypeSignature Language="F#" Value="type String = class
 inherit Object
 interface ISerializable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable
 interface ICharSequence
 interface seq<char>
 interface IEnumerable
 interface IComparable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.IO.ISerializable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.ICharSequence</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.IComparable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Collections.Generic.IEnumerable<System.Char></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Collections.IEnumerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/lang/String", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/lang/String", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>The <c>String</c> class represents character strings.</summary>
<remarks>
<para>The <c>String</c> class represents character strings. All
string literals in Java programs, such as <c>"abc"</c>, are
implemented as instances of this class.</para>
<para>Strings are constant; their values cannot be changed after they
are created. String buffers support mutable strings.
Because String objects are immutable they can be shared. For example:
<blockquote></para>
<code lang="text/java">String str = "abc";
</code>
<para></blockquote></para>
<para>is equivalent to:
<blockquote></para>
<code lang="text/java">char data[] = {'a', 'b', 'c'};
String str = new String(data);
</code>
<para></blockquote></para>
<para>Here are some more examples of how strings can be used:
<blockquote></para>
<code lang="text/java">System.out.println("abc");
String cde = "cde";
System.out.println("abc" + cde);
String c = "abc".substring(2,3);
String d = cde.substring(1, 2);
</code>
<para></blockquote></para>
<para>The class <c>String</c> includes methods for examining
individual characters of the sequence, for comparing strings, for
searching strings, for extracting substrings, and for creating a
copy of a string with all characters translated to uppercase or to
lowercase. Case mapping is based on the Unicode Standard version
specified by the <c>java.lang.Character Character</c> class.</para>
<para>The Java language provides special support for the string
concatenation operator (&nbsp;+&nbsp;), and for conversion of
other objects to strings. For additional information on string
concatenation and conversion, see <i>The Java&trade; Language Specification</i>.</para>
<para>Unless otherwise noted, passing a <c>null</c> argument to a constructor
or method in this class will cause a <c>NullPointerException</c> to be
thrown.</para>
<para>A <c>String</c> represents a string in the UTF-16 format
in which <em>supplementary characters</em> are represented by <em>surrogate
pairs</em> (see the section Unicode
Character Representations in the <c>Character</c> class for
more information).
Index values refer to <c>char</c> code units, so a supplementary
character uses two positions in a <c>String</c>.</para>
<para>The <c>String</c> class provides methods for dealing with
Unicode code points (i.e., characters), in addition to those for
dealing with Unicode code units (i.e., <c>char</c> values).</para>
<para>Unless otherwise noted, methods for comparing Strings do not take locale
into account. The <c>java.text.Collator</c> class provides methods for
finer-grain, locale-sensitive String comparison.</para>
<para>Added in 1.0.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String" title="Reference documentation">Java documentation for <code>java.lang.String</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "()V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "()V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Creates an empty string.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (Java.Lang.StringBuffer buffer);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Lang.StringBuffer buffer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(Java.Lang.StringBuffer)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : Java.Lang.StringBuffer -> Java.Lang.String" Usage="new Java.Lang.String buffer" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/lang/StringBuffer;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/StringBuffer;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="buffer" Type="Java.Lang.StringBuffer" />
</Parameters>
<Docs>
<param name="buffer">A <c>StringBuffer</c></param>
<summary>Allocates a new string that contains the sequence of characters
currently contained in the string buffer argument.</summary>
<remarks>
<para>Allocates a new string that contains the sequence of characters
currently contained in the string buffer argument. The contents of the
string buffer are copied; subsequent modification of the string buffer
does not affect the newly created string.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(java.lang.StringBuffer)" title="Reference documentation">Java documentation for <code>java.lang.String.String(java.lang.StringBuffer)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (Java.Lang.StringBuilder builder);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Lang.StringBuilder builder) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(Java.Lang.StringBuilder)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : Java.Lang.StringBuilder -> Java.Lang.String" Usage="new Java.Lang.String builder" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/lang/StringBuilder;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/StringBuilder;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="builder" Type="Java.Lang.StringBuilder" />
</Parameters>
<Docs>
<param name="builder">A <c>StringBuilder</c></param>
<summary>Allocates a new string that contains the sequence of characters
currently contained in the string builder argument.</summary>
<remarks>
<para>Allocates a new string that contains the sequence of characters
currently contained in the string builder argument. The contents of the
string builder are copied; subsequent modification of the string builder
does not affect the newly created string.</para>
<para>This constructor is provided to ease migration to <c>StringBuilder</c>. Obtaining a string from a string builder via the <c>toString</c> method is likely to run faster and is generally preferred.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(java.lang.StringBuilder)" title="Reference documentation">Java documentation for <code>java.lang.String.String(java.lang.StringBuilder)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>stringBuilder == null</c>.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? bytes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] bytes) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[])" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] -> Java.Lang.String" Usage="new Java.Lang.String bytes" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([B)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([B)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bytes" Type="System.Byte[]" />
</Parameters>
<Docs>
<param name="bytes">The bytes to be decoded into characters</param>
<summary>Constructs a new <c>String</c> by decoding the specified array of bytes
using the platform's default charset.</summary>
<remarks>
<para>Constructs a new <c>String</c> by decoding the specified array of bytes
using the platform's default charset. The length of the new <c>String</c> is a function of the charset, and hence may not be equal to the
length of the byte array.</para>
<para>The behavior of this constructor when the given bytes are not valid
in the default charset is unspecified. The <c>java.nio.charset.CharsetDecoder</c> class should be used when more control
over the decoding process is required.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[])" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[])</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (char[] data);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(char[] data) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Char[])" />
<MemberSignature Language="F#" Value="new Java.Lang.String : char[] -> Java.Lang.String" Usage="new Java.Lang.String data" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([C)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([C)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="data" Type="System.Char[]" />
</Parameters>
<Docs>
<param name="data">To be added.</param>
<summary>Initializes this string to contain the given <c>char</c>s.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c></exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (string toCopy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string toCopy) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.String)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : string -> Java.Lang.String" Usage="new Java.Lang.String toCopy" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="toCopy" Type="System.String" />
</Parameters>
<Docs>
<param name="toCopy">To be added.</param>
<summary>Constructs a new string with the same sequence of characters as <c>toCopy</c>.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? bytes, Java.Nio.Charset.Charset charset);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] bytes, class Java.Nio.Charset.Charset charset) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],Java.Nio.Charset.Charset)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * Java.Nio.Charset.Charset -> Java.Lang.String" Usage="new Java.Lang.String (bytes, charset)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BLjava/nio/charset/Charset;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BLjava/nio/charset/Charset;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bytes" Type="System.Byte[]" />
<Parameter Name="charset" Type="Java.Nio.Charset.Charset" />
</Parameters>
<Docs>
<param name="bytes">The bytes to be decoded into characters</param>
<param name="charset">The java.nio.charset.Charset charset to be used to
decode the <c>bytes</c></param>
<summary>Constructs a new <c>String</c> by decoding the specified array of
bytes using the specified java.</summary>
<remarks>
<para>Constructs a new <c>String</c> by decoding the specified array of
bytes using the specified java.nio.charset.Charset charset.
The length of the new <c>String</c> is a function of the charset, and
hence may not be equal to the length of the byte array.</para>
<para>This method always replaces malformed-input and unmappable-character
sequences with this charset's default replacement string. The <c>java.nio.charset.CharsetDecoder</c> class should be used when more control
over the decoding process is required.</para>
<para>Added in 1.6.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20java.nio.charset.Charset)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], java.nio.charset.Charset)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c></exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? ascii, int hibyte);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] ascii, int32 hibyte) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * int -> Java.Lang.String" Usage="new Java.Lang.String (ascii, hibyte)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BI)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BI)V", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("deprecated")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("deprecated")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="ascii" Type="System.Byte[]" />
<Parameter Name="hibyte" Type="System.Int32" />
</Parameters>
<Docs>
<param name="ascii">The bytes to be converted to characters</param>
<param name="hibyte">The top 8 bits of each 16-bit Unicode code unit</param>
<summary>Allocates a new <c>String</c> containing characters constructed from
an array of 8-bit integer values.</summary>
<remarks>
<para>Allocates a new <c>String</c> containing characters constructed from
an array of 8-bit integer values. Each character <i>c</i> in the
resulting string is constructed from the corresponding component
<i>b</i> in the byte array such that:
<blockquote></para>
<code lang="text/java"><b><i>c</i></b> == (char)(((hibyte &amp; 0xff) &lt;&lt; 8)
| (<b><i>b</i></b> &amp; 0xff))
</code>
<para></blockquote></para>
<para>This member is deprecated. This method does not properly convert bytes into
characters. As of JDK&nbsp;1.1, the preferred way to do this is via the
<c>String</c> constructors that take a <c>java.nio.charset.Charset</c>, charset name, or that use the platform's
default charset.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20int)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c>.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? bytes, string charsetName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] bytes, string charsetName) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],System.String)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * string -> Java.Lang.String" Usage="new Java.Lang.String (bytes, charsetName)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bytes" Type="System.Byte[]" />
<Parameter Name="charsetName" Type="System.String" />
</Parameters>
<Docs>
<param name="bytes">The bytes to be decoded into characters</param>
<param name="charsetName">The name of a supported java.nio.charset.Charset
charset</param>
<summary>Constructs a new <c>String</c> by decoding the specified array of bytes
using the specified java.</summary>
<remarks>
<para>Constructs a new <c>String</c> by decoding the specified array of bytes
using the specified java.nio.charset.Charset charset. The
length of the new <c>String</c> is a function of the charset, and hence
may not be equal to the length of the byte array.</para>
<para>The behavior of this constructor when the given bytes are not valid
in the given charset is unspecified. The <c>java.nio.charset.CharsetDecoder</c> class should be used when more control
over the decoding process is required.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20java.lang.String)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c>.</exception>
<exception cref="T:Java.IO.UnsupportedEncodingException">if <c>charsetName</c> is not supported.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? bytes, int offset, int length);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] bytes, int32 offset, int32 length) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],System.Int32,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * int * int -> Java.Lang.String" Usage="new Java.Lang.String (bytes, offset, length)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BII)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BII)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bytes" Type="System.Byte[]" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="length" Type="System.Int32" />
</Parameters>
<Docs>
<param name="bytes">The bytes to be decoded into characters</param>
<param name="offset">The index of the first byte to decode</param>
<param name="length">The number of bytes to decode</param>
<summary>Constructs a new <c>String</c> by decoding the specified subarray of
bytes using the platform's default charset.</summary>
<remarks>
<para>Constructs a new <c>String</c> by decoding the specified subarray of
bytes using the platform's default charset. The length of the new
<c>String</c> is a function of the charset, and hence may not be equal
to the length of the subarray.</para>
<para>The behavior of this constructor when the given bytes are not valid
in the default charset is unspecified. The <c>java.nio.charset.CharsetDecoder</c> class should be used when more control
over the decoding process is required.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20int,%20int)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c>.</exception>
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>byteCount data.length</c>.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (char[] data, int offset, int charCount);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(char[] data, int32 offset, int32 charCount) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Char[],System.Int32,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : char[] * int * int -> Java.Lang.String" Usage="new Java.Lang.String (data, offset, charCount)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([CII)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([CII)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="data" Type="System.Char[]" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="charCount" Type="System.Int32" />
</Parameters>
<Docs>
<param name="data">To be added.</param>
<param name="offset">To be added.</param>
<param name="charCount">To be added.</param>
<summary>Initializes this string to contain the given <c>char</c>s.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c>.</exception>
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>charCount data.length</c></exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (int[]? codePoints, int offset, int count);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32[] codePoints, int32 offset, int32 count) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Int32[],System.Int32,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : int[] * int * int -> Java.Lang.String" Usage="new Java.Lang.String (codePoints, offset, count)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([III)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([III)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="codePoints" Type="System.Int32[]" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="count" Type="System.Int32" />
</Parameters>
<Docs>
<param name="codePoints">Array that is the source of Unicode code points</param>
<param name="offset">The initial offset</param>
<param name="count">The length</param>
<summary>Allocates a new <c>String</c> that contains characters from a subarray
of the Unicode code point array
argument.</summary>
<remarks>
<para>Allocates a new <c>String</c> that contains characters from a subarray
of the Unicode code point array
argument. The <c>offset</c> argument is the index of the first code
point of the subarray and the <c>count</c> argument specifies the
length of the subarray. The contents of the subarray are converted to
<c>char</c>s; subsequent modification of the <c>int</c> array does not
affect the newly created string.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(int[],%20int,%20int)" title="Reference documentation">Java documentation for <code>java.lang.String.String(int[], int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>codePoints == null</c>.</exception>
<exception cref="T:Java.Lang.IllegalArgumentException">if any of the elements of <c>codePoints</c> are not valid
Unicode code points.</exception>
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>offset</c> or <c>count</c> are not within the bounds
of <c>codePoints</c>.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? bytes, int offset, int length, Java.Nio.Charset.Charset charset);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] bytes, int32 offset, int32 length, class Java.Nio.Charset.Charset charset) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],System.Int32,System.Int32,Java.Nio.Charset.Charset)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * int * int * Java.Nio.Charset.Charset -> Java.Lang.String" Usage="new Java.Lang.String (bytes, offset, length, charset)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BIILjava/nio/charset/Charset;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BIILjava/nio/charset/Charset;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bytes" Type="System.Byte[]" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="length" Type="System.Int32" />
<Parameter Name="charset" Type="Java.Nio.Charset.Charset" />
</Parameters>
<Docs>
<param name="bytes">The bytes to be decoded into characters</param>
<param name="offset">The index of the first byte to decode</param>
<param name="length">The number of bytes to decode</param>
<param name="charset">The java.nio.charset.Charset charset to be used to
decode the <c>bytes</c></param>
<summary>Constructs a new <c>String</c> by decoding the specified subarray of
bytes using the specified java.</summary>
<remarks>
<para>Constructs a new <c>String</c> by decoding the specified subarray of
bytes using the specified java.nio.charset.Charset charset.
The length of the new <c>String</c> is a function of the charset, and
hence may not be equal to the length of the subarray.</para>
<para>This method always replaces malformed-input and unmappable-character
sequences with this charset's default replacement string. The <c>java.nio.charset.CharsetDecoder</c> class should be used when more control
over the decoding process is required.</para>
<para>Added in 1.6.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20int,%20int,%20java.nio.charset.Charset)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], int, int, java.nio.charset.Charset)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>byteCount data.length</c></exception>
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c></exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? ascii, int hibyte, int offset, int count);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] ascii, int32 hibyte, int32 offset, int32 count) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],System.Int32,System.Int32,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * int * int * int -> Java.Lang.String" Usage="new Java.Lang.String (ascii, hibyte, offset, count)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BIII)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BIII)V", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("deprecated")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("deprecated")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="ascii" Type="System.Byte[]" />
<Parameter Name="hibyte" Type="System.Int32" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="count" Type="System.Int32" />
</Parameters>
<Docs>
<param name="ascii">The bytes to be converted to characters</param>
<param name="hibyte">The top 8 bits of each 16-bit Unicode code unit</param>
<param name="offset">The initial offset</param>
<param name="count">The length</param>
<summary>Allocates a new <c>String</c> constructed from a subarray of an array
of 8-bit integer values.</summary>
<remarks>
<para>Allocates a new <c>String</c> constructed from a subarray of an array
of 8-bit integer values.</para>
<para>The <c>offset</c> argument is the index of the first byte of the
subarray, and the <c>count</c> argument specifies the length of the
subarray.</para>
<para>Each <c>byte</c> in the subarray is converted to a <c>char</c> as
specified in the <c>#String(byte[],int) String(byte[],int)</c> constructor.</para>
<para>This member is deprecated. This method does not properly convert bytes into characters.
As of JDK&nbsp;1.1, the preferred way to do this is via the
<c>String</c> constructors that take a <c>java.nio.charset.Charset</c>, charset name, or that use the platform's
default charset.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20int,%20int,%20int)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], int, int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c>.</exception>
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>byteCount data.length</c></exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public String (byte[]? bytes, int offset, int length, string charsetName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] bytes, int32 offset, int32 length, string charsetName) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.#ctor(System.Byte[],System.Int32,System.Int32,System.String)" />
<MemberSignature Language="F#" Value="new Java.Lang.String : byte[] * int * int * string -> Java.Lang.String" Usage="new Java.Lang.String (bytes, offset, length, charsetName)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "([BIILjava/lang/String;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "([BIILjava/lang/String;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bytes" Type="System.Byte[]" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="length" Type="System.Int32" />
<Parameter Name="charsetName" Type="System.String" />
</Parameters>
<Docs>
<param name="bytes">The bytes to be decoded into characters</param>
<param name="offset">The index of the first byte to decode</param>
<param name="length">The number of bytes to decode</param>
<param name="charsetName">The name of a supported java.nio.charset.Charset
charset</param>
<summary>Constructs a new <c>String</c> by decoding the specified subarray of
bytes using the specified charset.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#String(byte[],%20int,%20int,%20java.lang.String)" title="Reference documentation">Java documentation for <code>java.lang.String.String(byte[], int, int, java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>data == null</c>.</exception>
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>byteCount data.length</c>.</exception>
<exception cref="T:Java.IO.UnsupportedEncodingException">if the named charset is not supported.
</exception>
</Docs>
</Member>
<Member MemberName="CaseInsensitiveOrder">
<MemberSignature Language="C#" Value="public static Java.Util.IComparator? CaseInsensitiveOrder { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Java.Util.IComparator CaseInsensitiveOrder" />
<MemberSignature Language="DocId" Value="P:Java.Lang.String.CaseInsensitiveOrder" />
<MemberSignature Language="F#" Value="static member CaseInsensitiveOrder : Java.Util.IComparator" Usage="Java.Lang.String.CaseInsensitiveOrder" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("CASE_INSENSITIVE_ORDER")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("CASE_INSENSITIVE_ORDER")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.IComparator</ReturnType>
</ReturnValue>
<Docs>
<summary>A Comparator that orders <c>String</c> objects as by
<c>compareToIgnoreCase</c>.</summary>
<value>To be added.</value>
<remarks>
<para>A Comparator that orders <c>String</c> objects as by
<c>compareToIgnoreCase</c>. This comparator is serializable.</para>
<para>Note that this Comparator does <em>not</em> take locale into account,
and will result in an unsatisfactory ordering for certain locales.
The <c>java.text.Collator</c> class provides locale-sensitive comparison.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#CASE_INSENSITIVE_ORDER" title="Reference documentation">Java documentation for <code>java.lang.String.CASE_INSENSITIVE_ORDER</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="CharAt">
<MemberSignature Language="C#" Value="public char CharAt (int index);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance char CharAt(int32 index) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.CharAt(System.Int32)" />
<MemberSignature Language="F#" Value="abstract member CharAt : int -> char
override this.CharAt : int -> char" Usage="string.CharAt index" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Lang.ICharSequence.CharAt(System.Int32)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("charAt", "(I)C", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("charAt", "(I)C", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Char</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="index">the index of the <c>char</c> value.</param>
<summary>Returns the <c>char</c> value at the
specified index.</summary>
<returns>the <c>char</c> value at the specified index of this string.
The first <c>char</c> value is at index <c>0</c>.</returns>
<remarks>
<para>Returns the <c>char</c> value at the
specified index. An index ranges from <c>0</c> to
<c>length() - 1</c>. The first <c>char</c> value of the sequence
is at index <c>0</c>, the next at index <c>1</c>,
and so on, as for array indexing.</para>
<para>If the <c>char</c> value specified by the index is a
surrogate, the surrogate
value is returned.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#charAt(int)" title="Reference documentation">Java documentation for <code>java.lang.String.charAt(int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>index </c> or <c>index >= length()</c>.
</exception>
</Docs>
</Member>
<Member MemberName="CodePointAt">
<MemberSignature Language="C#" Value="public int CodePointAt (int index);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 CodePointAt(int32 index) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.CodePointAt(System.Int32)" />
<MemberSignature Language="F#" Value="member this.CodePointAt : int -> int" Usage="string.CodePointAt index" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("codePointAt", "(I)I", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("codePointAt", "(I)I", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="index">the index to the <c>char</c> values</param>
<summary>Returns the character (Unicode code point) at the specified
index.</summary>
<returns>the code point value of the character at the
<c>index</c></returns>
<remarks>
<para>Returns the character (Unicode code point) at the specified
index. The index refers to <c>char</c> values
(Unicode code units) and ranges from <c>0</c> to
<c>#length()</c><c>- 1</c>.</para>
<para>If the <c>char</c> value specified at the given index
is in the high-surrogate range, the following index is less
than the length of this <c>String</c>, and the
<c>char</c> value at the following index is in the
low-surrogate range, then the supplementary code point
corresponding to this surrogate pair is returned. Otherwise,
the <c>char</c> value at the given index is returned.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#codePointAt(int)" title="Reference documentation">Java documentation for <code>java.lang.String.codePointAt(int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IndexOutOfBoundsException">if <c>index = length()</c></exception>
<altmember cref="M:Java.Lang.Character.CodePointAt(System.Char[], System.Int32, System.Int32)" />
</Docs>
</Member>
<Member MemberName="CodePointBefore">
<MemberSignature Language="C#" Value="public int CodePointBefore (int index);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 CodePointBefore(int32 index) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.String.CodePointBefore(System.Int32)" />
<MemberSignature Language="F#" Value="member this.CodePointBefore : int -> int" Usage="string.CodePointBefore index" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("codePointBefore", "(I)I", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("codePointBefore", "(I)I", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="index">the index following the code point that should be returned</param>
<summary>Returns the character (Unicode code point) before the specified
index.</summary>
<returns>the Unicode code point value before the given index.</returns>
<remarks>
<para>Returns the character (Unicode code point) before the specified
index. The index refers to <c>char</c> values
(Unicode code units) and ranges from <c>1</c> to <c>CharSequence#length() length</c>.</para>
<para>If the <c>char</c> value at <c>(index - 1)</c>
is in the low-surrogate range, <c>(index - 2)</c> is not
negative, and the <c>char</c> value at <c>(index -
2)</c> is in the high-surrogate range, then the
supplementary code point value of the surrogate pair is
returned. If the <c>char</c> value at <c>index -
1</c> is an unpaired low-surrogate or a high-surrogate, the
surrogate value is returned.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/String#codePointBefore(int)" title="Reference documentation">Java documentation for <code>java.lang.String.codePointBefore(int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>