wavelength 1.0.0
Loading...
Searching...
No Matches
DataString.h File Reference
#include "utl/Data.h"
Include dependency graph for DataString.h:

Go to the source code of this file.

Functions

void DataStringInit ()
 Size the string table and empty its hash table.
void DataStringTerminate ()
 Release every macro and forget them.
const char * DataFindString (const char *str)
 Find the interned copy of a string.
const char * DataAddString (const char *str)
 Intern a string that is not interned yet.
const char * DataInternString (const char *str)
 Find the interned copy of a string, interning it first when it is not interned yet.
void DataSetMacro (const char *name, DataArray *macro)
 Define or replace a macro.
DataArray * DataGetMacro (const char *name)
 Look up a macro.

Function Documentation

◆ DataStringInit()

void DataStringInit ( )

Size the string table and empty its hash table.

Ghidra address:
0x10016100

◆ DataStringTerminate()

void DataStringTerminate ( )

Release every macro and forget them.

Ghidra address:
0x100162a0

◆ DataFindString()

const char * DataFindString ( const char * str)

Find the interned copy of a string.

A pointer into the string table is returned unchanged.

Parameters
strThe string.
Returns
The interned copy, or null.
Ghidra address:
0x10016360

◆ DataAddString()

const char * DataAddString ( const char * str)

Intern a string that is not interned yet.

Parameters
strThe string.
Returns
The interned copy.
Ghidra address:
0x10016400

◆ DataInternString()

const char * DataInternString ( const char * str)
inline

Find the interned copy of a string, interning it first when it is not interned yet.

The control compiles this inline.

Parameters
strThe string.
Returns
The interned copy.

◆ DataSetMacro()

void DataSetMacro ( const char * name,
DataArray * macro )

Define or replace a macro.

Parameters
nameThe macro's name.
macroThe macro's value. It gains a reference.
Ghidra address:
0x10016500

◆ DataGetMacro()

DataArray * DataGetMacro ( const char * name)

Look up a macro.

Parameters
nameThe macro's name.
Returns
The macro's value, or null.
Ghidra address:
0x100165a0