libFirm
ident.h File Reference

Data type for unique names. More...

#include <stddef.h>
#include "firm_types.h"
#include "begin.h"
#include "end.h"

Go to the source code of this file.

Functions

identnew_id_from_str (const char *str)
 Store a string and create an ident.
identnew_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.
identid_unique (const char *tag)
 helper function for creating unique idents.
identid_mangle_u (ident *first, ident *scnd)
 mangle underscore: Returns a new ident that represents first_scnd.
identid_mangle_dot (ident *first, ident *scnd)
 mangle dot: Returns a new ident that represents first.scnd.
identid_mangle (ident *first, ident *scnd)
 mangle: Returns a new ident that represents firstscnd.
identid_mangle3 (const char *prefix, ident *middle, const char *suffix)
 Returns a new ident that represents 'prefixscndsuffix'.

Detailed Description

Data type for unique names.

Author
Goetz Lindenmaier Declarations for identifiers in the firm library

Definition in file ident.h.