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

str.h File Reference

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

Go to the source code of this file.

Classes

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

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

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

Functions

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.
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)

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 480 of file str.h.


Function Documentation

char* scumm_strdup ( const char *  in  ) 

Definition at line 1093 of file str.cpp.

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

Definition at line 1061 of file str.cpp.

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

Definition at line 1076 of file str.cpp.



Generated on Sat Mar 16 2019 05:04:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge