Lolly 1.4.28
Loading...
Searching...
No Matches
Private Member Functions | List of all members
lolly::data::string_u16 Class Reference

#include <string_u16.hpp>

Private Member Functions

 CONCRETE (string_u16)
 
 string_u16 ()
 
 string_u16 (int n)
 
template<size_t N_>
 string_u16 (const char16_t(&s)[N_])
 
 string_u16 (char16_t c)
 
 string_u16 (char16_t c, int n)
 
 string_u16 (const string_u16_view &sv)
 
char16_tbuffer ()
 
char16_tbuffer (int size)
 
char16_tbegin ()
 
char16_tend ()
 
 operator string_u16_view ()
 
string_u16_view operator() (int start, int end)
 
char16_toperator[] (int i)
 

Detailed Description

Definition at line 61 of file string_u16.hpp.

Constructor & Destructor Documentation

◆ string_u16() [1/6]

lolly::data::string_u16::string_u16 ( )
inlineprivate

Definition at line 64 of file string_u16.hpp.

The list class represents a linked list.
Definition list.hpp:48
base class of resources
Definition resource.hpp:23

◆ string_u16() [2/6]

lolly::data::string_u16::string_u16 ( int n)
inlineexplicitprivate

Definition at line 65 of file string_u16.hpp.

◆ string_u16() [3/6]

template<size_t N_>
lolly::data::string_u16::string_u16 ( const char16_t(&) s[N_])
inlineprivate

Definition at line 68 of file string_u16.hpp.

68 : rep (tm_new<string_u16_rep> (N_ - 1)) {
69 constexpr int n= N_ - 1;
70 for (int i= 0; i < n; i++)
71 rep->a[i]= s[i];
72 };

◆ string_u16() [4/6]

lolly::data::string_u16::string_u16 ( char16_t c)
private

Definition at line 84 of file string_u16.cpp.

85 rep->a[0]= c;
86};

◆ string_u16() [5/6]

lolly::data::string_u16::string_u16 ( char16_t c,
int n )
private

Definition at line 94 of file string_u16.cpp.

95 for (int i= 0; i < n; i++)
96 rep->a[i]= c;
97};

◆ string_u16() [6/6]

lolly::data::string_u16::string_u16 ( const string_u16_view & sv)
private

Definition at line 88 of file string_u16.cpp.

90 for (int i= 0; i < c.N; i++)
91 rep->a[i]= c.a[i];
92};

Member Function Documentation

◆ CONCRETE()

lolly::data::string_u16::CONCRETE ( string_u16 )
private

◆ buffer() [1/2]

char16_t * lolly::data::string_u16::buffer ( )
inlineprivate

Definition at line 78 of file string_u16.hpp.

78{ return rep->a; }

◆ buffer() [2/2]

char16_t * lolly::data::string_u16::buffer ( int size)
inlineprivate

Definition at line 79 of file string_u16.hpp.

79 {
80 rep->resize (size);
81 return rep->a;
82 }

◆ begin()

char16_t * lolly::data::string_u16::begin ( )
inlineprivate

Definition at line 83 of file string_u16.hpp.

83{ return rep->a; }

◆ end()

char16_t * lolly::data::string_u16::end ( )
inlineprivate

Definition at line 84 of file string_u16.hpp.

84{ return rep->a + rep->n; }

◆ operator string_u16_view()

lolly::data::string_u16::operator string_u16_view ( )
inlineprivate

Definition at line 86 of file string_u16.hpp.

86 {
87 return string_u16_view (rep->a, rep->n);
88 }
lolly::data::string_view< char16_t > string_u16_view

◆ operator()()

string_u16_view lolly::data::string_u16::operator() ( int start,
int end )
inlineprivate

Definition at line 89 of file string_u16.hpp.

89 {
90 return ((string_u16_view) * this) (start, end);
91 }

◆ operator[]()

char16_t & lolly::data::string_u16::operator[] ( int i)
inlineprivate

Definition at line 93 of file string_u16.hpp.

93{ return rep->a[i]; }

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