wavelength 1.0.0
Loading...
Searching...
No Matches
string.h File Reference
#include "os/prnstream.h"
Include dependency graph for string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  String
 Growable text buffer that is also a PrnStream. More...

Functions

const char * FormatString (const char *pszFormat,...)
 Format text into one shared buffer and return it.
void SetStringReadsText (int bText)
 Make operator>>(BinStream &, String &) read text up to its terminator, or read a string as BinStream::WriteString() wrote it.

Variables

char * g_szStringEmptyBuffer
 Shared terminated buffer every empty String points at.

Function Documentation

◆ FormatString()

const char * FormatString ( const char * pszFormat,
... )

Format text into one shared buffer and return it.

The result remains valid only until the next call.

Parameters
pszFormatA printf-style format string.
Returns
The shared buffer.
Ghidra address:
NTSC-U/C: 0x0029e948
Ghidra address:
PAL: 0x002a8608

◆ SetStringReadsText()

void SetStringReadsText ( int bText)

Make operator>>(BinStream &, String &) read text up to its terminator, or read a string as BinStream::WriteString() wrote it.

The name is inferred.

Parameters
bTextNon-zero to read text up to its terminator.
Ghidra address:
NTSC-U/C: 0x0029f858
Ghidra address:
PAL: 0x002a9518

Variable Documentation

◆ g_szStringEmptyBuffer

char* g_szStringEmptyBuffer
extern

Shared terminated buffer every empty String points at.

Ghidra address:
NTSC-U/C: 0x003b24d0
Ghidra address:
PAL: 0x00431390