|
libFirm
|
Typedefs | |
| typedef struct ident | ident |
| Identifier. | |
Functions | |
| ident * | new_id_from_str (const char *str) |
| Store a string and create an ident. | |
| ident * | new_id_from_chars (const char *str, size_t len) |
| Store a string and create an ident. | |
| const char * | get_id_str (ident *id) |
| Returns a string represented by an ident. | |
| size_t | get_id_strlen (ident *id) |
| Returns the length of the string represented by an ident. | |
| int | id_is_prefix (ident *prefix, ident *id) |
Test if prefix is a prefix of ident id. | |
| int | id_is_suffix (ident *suffix, ident *id) |
Test if suffix is a suffix of ident id. | |
| int | id_contains_char (ident *id, char c) |
| Test if identifier contains a given character. | |
| ident * | id_unique (const char *tag) |
| helper function for creating unique idents. | |
| ident * | id_mangle_u (ident *first, ident *scnd) |
| mangle underscore: Returns a new ident that represents first_scnd. | |
| ident * | id_mangle_dot (ident *first, ident *scnd) |
| mangle dot: Returns a new ident that represents first.scnd. | |
| ident * | id_mangle (ident *first, ident *scnd) |
| mangle: Returns a new ident that represents firstscnd. | |
| ident * | id_mangle3 (const char *prefix, ident *middle, const char *suffix) |
| Returns a new ident that represents 'prefixscndsuffix'. | |
Identifier.
Definition at line 60 of file firm_types.h.
| const char* get_id_str | ( | ident * | id | ) |
Returns a string represented by an ident.
Returns the string represented by id. This string is NULL terminated. The string may not be changed.
| id | the ident |
| size_t get_id_strlen | ( | ident * | id | ) |
Returns the length of the string represented by an ident.
| id | the ident |
| int id_contains_char | ( | ident * | id, |
| char | c | ||
| ) |
Test if identifier contains a given character.
| id | the ident |
| c | the character |
Test if prefix is a prefix of ident id.
| prefix | the prefix |
| id | the ident |
prefix is prefix of id, 0 otherwise Test if suffix is a suffix of ident id.
| suffix | the suffix |
| id | the ident |
suffix is suffix of id, 0 otherwise mangle: Returns a new ident that represents firstscnd.
Returns a new ident that represents 'prefixscndsuffix'.
mangle dot: Returns a new ident that represents first.scnd.
mangle underscore: Returns a new ident that represents first_scnd.
| ident* id_unique | ( | const char * | tag | ) |
helper function for creating unique idents.
It contains an internal counter and replaces a "%u" inside the tag with the counter.
| ident* new_id_from_chars | ( | const char * | str, |
| size_t | len | ||
| ) |
Store a string and create an ident.
Stores a string in the ident module and returns a handle for the string. Copies the string. This version takes non-zero-terminated strings.
| str | the string (or whatever) which shall be stored |
| len | the length of the data in bytes |
| ident* new_id_from_str | ( | const char * | str | ) |
Store a string and create an ident.
Stores a string in the ident module and returns a handle for the string.
Copies the string. str must be zero terminated
| str | the string which shall be stored |