Contents Up Previous Next

String functions

::copystring
::wxStringMatch
::wxStringEq
::wxTransferFileToStream
::wxTransferStreamToFile


::copystring

char * copystring(char *s)

Makes a copy of the string s using the C++ new operator, so it can be deleted with the delete operator.


::wxStringMatch

Bool wxStringMatch(char *s1, char *s2,
Bool subString = TRUE, Bool exact = FALSE)

Returns TRUE if the substring s1 is found within s2, ignoring case if exact is FALSE. If subString is FALSE, no substring matching is done.


::wxStringEq

Bool wxStringEq(char *s1, char *s2)

A macro defined as:

#define wxStringEq(s1, s2) (s1 && s2 && (strcmp(s1, s2) == 0))

::wxTransferFileToStream

Bool wxTransferFileToStream(char *filename, ostream& stream)

Copies the given file to stream. Useful when converting an old application to use streams (within the document/view framework, for example).

Use of this function requires the file wx_doc.h to be included.


::wxTransferStreamToFile

Bool wxTransferStreamToFile(istream& stream char *filename)

Copies the given stream to the file filename. Useful when converting an old application to use streams (within the document/view framework, for example).

Use of this function requires the file wx_doc.h to be included.