Main Page
Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues |
[ Common | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
Back to the top of CStrW
Back to the top of CStrW
DECLARESTR(a) Allocates space for a CStr*, and sets it to null
MAKESTR(a,b) Constructs a CStr from a Java String. If 'a' is null, or if an exception occurs, sets 'theErr' and jumps to 'bail' 'a' is the Java string ( JSTRING ) 'b' is the CStr*
DELETESTR(a) If 'a' isn't null, calls 'delete' on it.
Back to the top of CStrW
CStrW( JNIEnv *pEnv, jstring pStr );
Construct from an RNI string. Only available in RNI builds.
CStrW( JNIEnv *pEnv, jstring pStr );
Back to the top of CStrW
CStrW( Hjava_lang_String *ps );
Construct from a JNI String. Only available in JNI builds.
CStrW( Hjava_lang_String *ps );
Back to the top of CStrW
Construct with an internal buffer able to hold 'len' characters
CStrW( long len );
Back to the top of CStrW
Construct from a wchar_t string
CStrW( const wchar_t *s );
Back to the top of CStrW
Construct from a C string, converting with MultiByteToWideChar().
CStrW( const char *s );
Back to the top of CStrW
Construct from another CStrW.
CStrW( const CStrW *cs );
Back to the top of CStrW
Destructor.
virtual ~CStrW();
Back to the top of CStrW
Hjava_lang_String *getJString();
Convert to an RNI String. Only available in RNI builds.
virtual Hjava_lang_String *getJString();
Back to the top of CStrW
jstring getJString( JNIEnv *pEnv );
Convert to a JNI String. Only available in JNI builds.
virtual jstring getJString( JNIEnv *pEnv );
Back to the top of CStrW
Returns a pointer to the character buffer.
virtual wchar_t *getBuf() const;
Back to the top of CStrW
Returns the length of the string.
virtual long getLength() const;
Back to the top of CStrW
Converts the string to upper case.
virtual void toUpper();
Back to the top of CStrW
Converts the string to lower case.
virtual void toLower();
Back to the top of CStrW
void setBuf( const wchar_t *s );
Copies the given string into this object, expanding the internal buffer as necessary.
virtual void setBuf( const wchar_t *s );
Back to the top of CStrW
void setBuf( const CStrW *cs );
Copies the given string into this object, expanding the internal buffer as necessary.
virtual void setBuf( const CStrW *cs );
Back to the top of CStrW
void ensureCharCapacity( long cap );
Ensures that this object's internal buffer can contain the given number of characters.
virtual void ensureCharCapacity( long cap );
Back to the top of CStrW
Returns the number of characters this object's buffer can hold.
virtual long getCharCapacity() const;
Back to the top of CStrW
Returns the number of bytes this object's buffer can hold.
virtual long getByteCapacity() const;
Back to the top of CStrW
void concat( const wchar_t *s );
Concatenates the given string, expanding the internal buffer as necessary.
virtual void concat( const wchar_t *s );
Back to the top of CStrW
void concat( const CStrW *cs );
Concatenates the given string, expanding the internal buffer as necessary.
virtual void concat( const CStrW *cs );
Back to the top of CStrW
BOOL contains( const CStrW *cs ) const;
Returns TRUE if this string contains 'cs', FALSE otherwise. Case significant.
virtual BOOL contains( const CStrW *cs ) const;
Back to the top of CStrW
BOOL contains( const wchar_t *s ) const;
Returns TRUE if this string contains 's', FALSE otherwise. Case significant.
virtual BOOL contains( const wchar_t *s ) const;
Back to the top of CStrW
BOOL startsWith( const CStrW *cs ) const;
Returns TRUE if this string starts with the given string, FALSE otherwise.
virtual BOOL startsWith( const CStrW *cs ) const;
Back to the top of CStrW
BOOL startsWith( const wchar_t *s ) const;
Returns TRUE if this string starts with the given string, FALSE otherwise.
virtual BOOL startsWith( const wchar_t *s ) const;
Back to the top of CStrW
BOOL isEqual( const CStrW *cs ) const;
Returns TRUE if this string equals the given string, FALSE otherwise.
virtual BOOL isEqual( const CStrW *cs ) const;
Back to the top of CStrW
BOOL isEqual( const wchar_t *s ) const;
Returns TRUE if this string equals the given string, FALSE otherwise.
virtual BOOL isEqual( const wchar_t *s ) const;
Back to the top of CStrW
BOOL isEqualIgnoreCase( const CStrW *cs ) const;
Returns TRUE if this string equals the given string, FALSE otherwise. Not case sensitive.
virtual BOOL isEqualIgnoreCase( const CStrW *cs ) const;
Back to the top of CStrW
BOOL isEqualIgnoreCase( const wchar_t *s ) const;
Returns TRUE if this string equals the given string, FALSE otherwise. Not case sensitive.
virtual BOOL isEqualIgnoreCase( const wchar_t *s ) const;
Back to the top of CStrW
long replaceFrom( long startIndex, const wchar_t *searchString, const CStrW *csReplace );
Searches for a substring, and, if found, replaces with another string.
virtual long replaceFrom( long startIndex, const wchar_t *searchString, const CStrW *csReplace );
Back to the top of CStrW
BOOL extractExeFileName( CStrW *csDest );
If this string contains the full path of an .exe file, places it in csDest. Returns TRUE if it succeeds, FALSE otherwise.
virtual BOOL extractExeFileName( CStrW *csDest );
Back to the top of CStrW
void formatInt( const wchar_t *lpszFormat, long num );
Uses sprintf to write an integer into this string. The string must be at least 10 characters long.
virtual void formatInt( const wchar_t *lpszFormat, long num );
Back to the top of CStrW
long countPackedStrings( const CStrW *ps );
Returns the number of strings in the given packed string. See getPackedString for a description of the format of packed strings.
static long countPackedStrings( const CStrW *ps );
Back to the top of CStrW
CStrW *getPackedString( const CStrW *ps, long i );
Returns a CStrW containing the i'th string in the given packed string.
Returns NULL if that string could not be found.
A "packed" string consists of a series of null-terminated c strings, followed by a null character.
If
Back to the top of CStrW Back to the top of CStrW
Back to the top of CStrW
Back to the top of CStrW
static CStrW *getPackedString( const CStrW *ps, long i );
All Members
Ancestors
Class does not inherit from any other class.Descendants
Class is not inherited by any others.
Generated from source by the Cocoon utilities on Fri Aug 23 12:33:48 2002
.