ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

str.h File Reference

#include "common/scummsys.h"
#include "common/str-enc.h"
#include "common/ustr.h"
#include <stdarg.h>
Include dependency graph for str.h:

Go to the source code of this file.


class  Common::String
 Simple string class for ScummVM. More...


namespace  Common

Internal interface to the QuickTime audio decoder.


#define tag2str(x)   Common::tag2string(x).c_str()
 Convenience wrapper for tag2string which "returns" a C string.


String Common::operator+ (const String &x, const String &y)
String Common::operator+ (const char *x, const String &y)
String Common::operator+ (const String &x, const char *y)
String Common::operator+ (const String &x, char y)
String Common::operator+ (char x, const String &y)
bool Common::operator== (const char *y, const String &x)
bool Common::operator!= (const char *y, const String &x)
char * Common::ltrim (char *t)
char * Common::rtrim (char *t)
char * Common::trim (char *t)
String Common::lastPathComponent (const String &path, const char sep)
 Returns the last component of a given path.
String Common::normalizePath (const String &path, const char sep)
 Normalize a given path to a canonical form.
bool Common::matchString (const char *str, const char *pat, bool ignoreCase=false, bool pathMode=false)
 Simple DOS-style pattern matching function (understands * and ? like used in DOS).
void Common::replace (Common::String &source, const Common::String &what, const Common::String &with)
 Function which replaces substring with the other.
String Common::tag2string (uint32 tag)
 Take a 32 bit value and turn it into a four character string, where each of the four bytes is turned into one character.
size_t Common::strlcpy (char *dst, const char *src, size_t size)
 Copy up to size - 1 characters from src to dst and also zero terminate the result.
size_t Common::strlcat (char *dst, const char *src, size_t size)
 Append the string src to the string dst.
size_t Common::strnlen (const char *src, size_t maxSize)
 Determine the length of a string up to a maximum of `maxSize` characters.
String Common::toPrintable (const String &src, bool keepNewLines=true)
 Converts string with all non-printable characters properly escaped with use of C++ escape sequences.
int scumm_stricmp (const char *s1, const char *s2)
int scumm_strnicmp (const char *s1, const char *s2, uint n)
char * scumm_strdup (const char *in)
int scumm_compareDictionary (const char *s1, const char *s2)
const char * scumm_skipArticle (const char *s1)
const char * scumm_strcasestr (const char *s, const char *find)

Define Documentation

#define tag2str (   x  )     Common::tag2string(x).c_str()

Convenience wrapper for tag2string which "returns" a C string.

Note: It is *NOT* safe to do anything with the return value other than directly copying or printing it.

Definition at line 557 of file str.h.

Function Documentation

int scumm_compareDictionary ( const char *  s1,
const char *  s2 

Definition at line 1338 of file str.cpp.

const char* scumm_skipArticle ( const char *  s1  ) 

Definition at line 1326 of file str.cpp.

const char* scumm_strcasestr ( const char *  s,
const char *  find 

Definition at line 1353 of file str.cpp.

char* scumm_strdup ( const char *  in  ) 

Definition at line 1343 of file str.cpp.

int scumm_stricmp ( const char *  s1,
const char *  s2 

Definition at line 1295 of file str.cpp.

int scumm_strnicmp ( const char *  s1,
const char *  s2,
uint  n 

Definition at line 1310 of file str.cpp.

Generated on Sat Sep 19 2020 05:02:28 for ResidualVM by doxygen 1.7.1
curved edge   curved edge