Public Member Functions | Data Fields

StrList Struct Reference

#include <ink_string++.h>

Collaboration diagram for StrList:
Collaboration graph
[legend]

Public Member Functions

 StrList (bool do_copy_when_adding_string=true)
 ~StrList ()
Strget_idx (int i)
void append (Str *str)
void prepend (Str *str)
void add_after (Str *prev, Str *str)
void detach (Str *str)
Strnew_cell (const char *s, int len_not_counting_nul)
Strappend_string (const char *s, int len_not_counting_nul)
void dump (FILE *fp=stderr)

Data Fields

int count
Strhead
Strtail

Detailed Description

Definition at line 123 of file ink_string++.h.


Constructor & Destructor Documentation

StrList::StrList ( bool  do_copy_when_adding_string = true  )  [inline]

Definition at line 198 of file ink_string++.h.

StrList::~StrList (  )  [inline]

Definition at line 207 of file ink_string++.h.


Member Function Documentation

void StrList::add_after ( Str prev,
Str str 
) [inline]

Definition at line 296 of file ink_string++.h.

References count, Str::next, Str::prev, and tail.

Referenced by mime_field_value_insert_comma_val().

void StrList::append ( Str str  )  [inline]

Definition at line 261 of file ink_string++.h.

References count, head, Str::next, Str::prev, and tail.

Referenced by append_string().

Str * StrList::append_string ( const char *  s,
int  len_not_counting_nul 
) [inline]

Definition at line 326 of file ink_string++.h.

References append(), and new_cell().

Referenced by mime_field_value_get_comma_list(), and HttpCompat::parse_tok_list().

void StrList::detach ( Str str  )  [inline]

Definition at line 309 of file ink_string++.h.

References count, head, Str::next, Str::prev, and tail.

Referenced by mime_field_value_delete_comma_val().

void StrList::dump ( FILE *  fp = stderr  ) 

Definition at line 45 of file ink_string++.cc.

References Str::dump(), head, and Str::next.

Referenced by HttpTransactCache::CalcVariability().

Str * StrList::get_idx ( int  i  )  [inline]
Str * StrList::new_cell ( const char *  s,
int  len_not_counting_nul 
) [inline]

Definition at line 235 of file ink_string++.h.

References Str::len, Str::str, and STRLIST_BASE_CELLS.

Referenced by append_string(), and mime_field_value_insert_comma_val().

void StrList::prepend ( Str str  )  [inline]

Definition at line 279 of file ink_string++.h.

References count, head, Str::next, Str::prev, and tail.

Referenced by mime_field_value_insert_comma_val().


Field Documentation

Definition at line 128 of file ink_string++.h.

Referenced by add_after(), append(), detach(), and prepend().


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