1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_lang_CPStringBuilder__
|
5 |
|
|
#define __gnu_java_lang_CPStringBuilder__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace lang
|
19 |
|
|
{
|
20 |
|
|
class CPStringBuilder;
|
21 |
|
|
}
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
class gnu::java::lang::CPStringBuilder : public ::java::lang::Object
|
27 |
|
|
{
|
28 |
|
|
|
29 |
|
|
public:
|
30 |
|
|
CPStringBuilder();
|
31 |
|
|
CPStringBuilder(jint);
|
32 |
|
|
CPStringBuilder(::java::lang::String *);
|
33 |
|
|
CPStringBuilder(::java::lang::StringBuffer *);
|
34 |
|
|
CPStringBuilder(::java::lang::StringBuilder *);
|
35 |
|
|
CPStringBuilder(::java::lang::CharSequence *);
|
36 |
|
|
void setLength(jint);
|
37 |
|
|
jchar charAt(jint);
|
38 |
|
|
jint codePointAt(jint);
|
39 |
|
|
jint codePointBefore(jint);
|
40 |
|
|
void getChars(jint, jint, JArray< jchar > *, jint);
|
41 |
|
|
void setCharAt(jint, jchar);
|
42 |
|
|
::gnu::java::lang::CPStringBuilder * append(::java::lang::Object *);
|
43 |
|
|
::gnu::java::lang::CPStringBuilder * append(::java::lang::String *);
|
44 |
|
|
::gnu::java::lang::CPStringBuilder * append(::java::lang::StringBuffer *);
|
45 |
|
|
::gnu::java::lang::CPStringBuilder * append(JArray< jchar > *);
|
46 |
|
|
::gnu::java::lang::CPStringBuilder * append(JArray< jchar > *, jint, jint);
|
47 |
|
|
::gnu::java::lang::CPStringBuilder * append(jboolean);
|
48 |
|
|
::gnu::java::lang::CPStringBuilder * CPStringBuilder$append(jchar);
|
49 |
|
|
::gnu::java::lang::CPStringBuilder * CPStringBuilder$append(::java::lang::CharSequence *);
|
50 |
|
|
::gnu::java::lang::CPStringBuilder * CPStringBuilder$append(::java::lang::CharSequence *, jint, jint);
|
51 |
|
|
::gnu::java::lang::CPStringBuilder * append(jint);
|
52 |
|
|
::gnu::java::lang::CPStringBuilder * append(jlong);
|
53 |
|
|
::gnu::java::lang::CPStringBuilder * append(jfloat);
|
54 |
|
|
::gnu::java::lang::CPStringBuilder * append(jdouble);
|
55 |
|
|
::gnu::java::lang::CPStringBuilder * appendCodePoint(jint);
|
56 |
|
|
::gnu::java::lang::CPStringBuilder * delete$(jint, jint);
|
57 |
|
|
::gnu::java::lang::CPStringBuilder * deleteCharAt(jint);
|
58 |
|
|
::gnu::java::lang::CPStringBuilder * replace(jint, jint, ::java::lang::String *);
|
59 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, JArray< jchar > *, jint, jint);
|
60 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, ::java::lang::Object *);
|
61 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, ::java::lang::String *);
|
62 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, ::java::lang::CharSequence *);
|
63 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, ::java::lang::CharSequence *, jint, jint);
|
64 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, JArray< jchar > *);
|
65 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, jboolean);
|
66 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, jchar);
|
67 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, jint);
|
68 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, jlong);
|
69 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, jfloat);
|
70 |
|
|
::gnu::java::lang::CPStringBuilder * insert(jint, jdouble);
|
71 |
|
|
jint indexOf(::java::lang::String *);
|
72 |
|
|
jint indexOf(::java::lang::String *, jint);
|
73 |
|
|
jint lastIndexOf(::java::lang::String *);
|
74 |
|
|
jint lastIndexOf(::java::lang::String *, jint);
|
75 |
|
|
::gnu::java::lang::CPStringBuilder * reverse();
|
76 |
|
|
void trimToSize();
|
77 |
|
|
jint codePointCount(jint, jint);
|
78 |
|
|
jint offsetByCodePoints(jint, jint);
|
79 |
|
|
void ensureCapacity(jint);
|
80 |
|
|
private:
|
81 |
|
|
void allocateArray(jint);
|
82 |
|
|
public:
|
83 |
|
|
jint length();
|
84 |
|
|
::java::lang::CharSequence * subSequence(jint, jint);
|
85 |
|
|
::java::lang::String * substring(jint);
|
86 |
|
|
::java::lang::String * substring(jint, jint);
|
87 |
|
|
::java::lang::String * toString();
|
88 |
|
|
::java::lang::Appendable * append(::java::lang::CharSequence *, jint, jint);
|
89 |
|
|
::java::lang::Appendable * append(::java::lang::CharSequence *);
|
90 |
|
|
::java::lang::Appendable * append(jchar);
|
91 |
|
|
private:
|
92 |
|
|
jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) count;
|
93 |
|
|
JArray< jchar > * value;
|
94 |
|
|
jboolean allocated;
|
95 |
|
|
static jint DEFAULT_CAPACITY;
|
96 |
|
|
public:
|
97 |
|
|
static ::java::lang::Class class$;
|
98 |
|
|
};
|
99 |
|
|
|
100 |
|
|
#endif // __gnu_java_lang_CPStringBuilder__
|