foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions | Data Fields
pfc::string_part_ref

#include <string_base.h>

Public Member Functions

string_part_ref substring (t_size base) const
 
string_part_ref substring (t_size base, t_size len) const
 

Static Public Member Functions

static string_part_ref make (const char *ptr, t_size len)
 

Data Fields

t_size m_len
 
const char * m_ptr
 

Detailed Description

Definition at line 12 of file string_base.h.

Member Function Documentation

static string_part_ref pfc::string_part_ref::make ( const char *  ptr,
t_size  len 
)
inlinestatic

Definition at line 17 of file string_base.h.

17  {
18  string_part_ref val = {ptr, len}; return val;
19  }
string_part_ref pfc::string_part_ref::substring ( t_size  base) const
inline

Definition at line 21 of file string_base.h.

21  {
22  PFC_ASSERT( base <= m_len );
23  return make(m_ptr + base, m_len - base);
24  }
const char * m_ptr
Definition: string_base.h:13
static string_part_ref make(const char *ptr, t_size len)
Definition: string_base.h:17
string_part_ref pfc::string_part_ref::substring ( t_size  base,
t_size  len 
) const
inline

Definition at line 25 of file string_base.h.

25  {
26  PFC_ASSERT( base <= m_len && base + len <= m_len );
27  return make(m_ptr + base, len);
28  }
const char * m_ptr
Definition: string_base.h:13
static string_part_ref make(const char *ptr, t_size len)
Definition: string_base.h:17

Field Documentation

t_size pfc::string_part_ref::m_len

Definition at line 14 of file string_base.h.

const char* pfc::string_part_ref::m_ptr

Definition at line 13 of file string_base.h.


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