libtld 2.0.14
A library to determine the Top-Level Domain name of any Internet URI.
Public Types | Public Member Functions | Private Attributes | List of all members
tld_string Class Reference

Public Types

typedef std::map< string_id_t, pointer_t > map_by_id_t
 
typedef std::map< std::string, pointer_t > map_by_string_t
 
typedef std::shared_ptr< tld_stringpointer_t
 

Public Member Functions

 tld_string (string_id_t id, std::string const &s)
 
string_id_t get_found_in () const
 
string_id_t get_id () const
 
std::string const & get_string () const
 
std::string::size_type length () const
 
void set_found_in (string_id_t id)
 

Private Attributes

string_id_t f_found_in = STRING_ID_NULL
 
string_id_t f_id = STRING_ID_NULL
 
std::string f_string = std::string()
 

Detailed Description

Definition at line 59 of file tld_compiler.h.

Member Typedef Documentation

◆ map_by_id_t

typedef std::map<string_id_t, pointer_t> tld_string::map_by_id_t

Definition at line 64 of file tld_compiler.h.

◆ map_by_string_t

typedef std::map<std::string, pointer_t> tld_string::map_by_string_t

Definition at line 63 of file tld_compiler.h.

◆ pointer_t

typedef std::shared_ptr<tld_string> tld_string::pointer_t

Definition at line 62 of file tld_compiler.h.

Constructor & Destructor Documentation

◆ tld_string()

tld_string::tld_string ( string_id_t  id,
std::string const &  s 
)

Definition at line 58 of file tld_compiler.cpp.

Member Function Documentation

◆ get_found_in()

string_id_t tld_string::get_found_in ( ) const

Definition at line 89 of file tld_compiler.cpp.

◆ get_id()

string_id_t tld_string::get_id ( ) const

Definition at line 65 of file tld_compiler.cpp.

◆ get_string()

std::string const & tld_string::get_string ( ) const

Definition at line 71 of file tld_compiler.cpp.

◆ length()

std::string::size_type tld_string::length ( ) const

Definition at line 77 of file tld_compiler.cpp.

◆ set_found_in()

void tld_string::set_found_in ( string_id_t  id)

Definition at line 83 of file tld_compiler.cpp.

Member Data Documentation

◆ f_found_in

string_id_t tld_string::f_found_in = STRING_ID_NULL
private

Definition at line 77 of file tld_compiler.h.

◆ f_id

string_id_t tld_string::f_id = STRING_ID_NULL
private

Definition at line 75 of file tld_compiler.h.

◆ f_string

std::string tld_string::f_string = std::string()
private

Definition at line 76 of file tld_compiler.h.


The documentation for this class was generated from the following files:

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.