MD::InternalStringT

Search for usage in LXR

MD::InternalStringT< String, Char, Latin1Char > Class Template Reference

#include <traits.h>

Public Member Functions

 InternalStringT ()
 
 InternalStringT (const String &s)
 
String & asString ()
 
const String & asString () const
 
const String & fullVirginString () const
 
InternalStringTinsert (long long int pos, Char ch)
 
InternalStringTinsert (long long int pos, const String &s)
 
bool isEmpty () const
 
long long int length () const
 
Char operator[] (long long int position) const
 
InternalStringTremove (long long int pos, long long int size)
 
InternalStringTreplace (const String &what, const String &with)
 
InternalStringTreplaceOne (long long int pos, long long int size, const String &with)
 
InternalStringT right (long long int n) const
 
InternalStringT simplified () const
 
InternalStringT sliced (long long int pos, long long int len=-1) const
 
std::vector< InternalStringTsplit (const InternalStringT &sep) const
 
long long int virginPos (long long int pos, bool end=false) const
 
String virginSubString (long long int pos=0, long long int len=-1) const
 

Detailed Description

template<class String, class Char, class Latin1Char>
class MD::InternalStringT< String, Char, Latin1Char >

Internal string, used to get virgin (original) string from transformed string.

Definition at line 55 of file traits.h.

Constructor & Destructor Documentation

◆ InternalStringT() [1/2]

template<class String , class Char , class Latin1Char >
MD::InternalStringT< String, Char, Latin1Char >::InternalStringT ( )
inline

Definition at line 58 of file traits.h.

◆ InternalStringT() [2/2]

template<class String , class Char , class Latin1Char >
MD::InternalStringT< String, Char, Latin1Char >::InternalStringT ( const String & s)
inline

Definition at line 61 of file traits.h.

Member Function Documentation

◆ asString() [1/2]

template<class String , class Char , class Latin1Char >
String & MD::InternalStringT< String, Char, Latin1Char >::asString ( )
inline
Returns
Reference to string.

Definition at line 68 of file traits.h.

◆ asString() [2/2]

template<class String , class Char , class Latin1Char >
const String & MD::InternalStringT< String, Char, Latin1Char >::asString ( ) const
inline
Returns
Reference to string.

Definition at line 74 of file traits.h.

◆ fullVirginString()

template<class String , class Char , class Latin1Char >
const String & MD::InternalStringT< String, Char, Latin1Char >::fullVirginString ( ) const
inline
Returns
Full virgin string.

Definition at line 80 of file traits.h.

◆ insert() [1/2]

template<class String , class Char , class Latin1Char >
InternalStringT & MD::InternalStringT< String, Char, Latin1Char >::insert ( long long int pos,
Char ch )
inline

Insert one character.

Definition at line 363 of file traits.h.

◆ insert() [2/2]

template<class String , class Char , class Latin1Char >
InternalStringT & MD::InternalStringT< String, Char, Latin1Char >::insert ( long long int pos,
const String & s )
inline

Insert string.

Definition at line 369 of file traits.h.

◆ isEmpty()

template<class String , class Char , class Latin1Char >
bool MD::InternalStringT< String, Char, Latin1Char >::isEmpty ( ) const
inline
Returns
Is this string empty?

Definition at line 219 of file traits.h.

◆ length()

template<class String , class Char , class Latin1Char >
long long int MD::InternalStringT< String, Char, Latin1Char >::length ( ) const
inline
Returns
Length of the string.

Definition at line 225 of file traits.h.

◆ operator[]()

template<class String , class Char , class Latin1Char >
Char MD::InternalStringT< String, Char, Latin1Char >::operator[] ( long long int position) const
inline

Definition at line 148 of file traits.h.

◆ remove()

template<class String , class Char , class Latin1Char >
InternalStringT & MD::InternalStringT< String, Char, Latin1Char >::remove ( long long int pos,
long long int size )
inline

Remove sub-string.

Definition at line 206 of file traits.h.

◆ replace()

template<class String , class Char , class Latin1Char >
InternalStringT & MD::InternalStringT< String, Char, Latin1Char >::replace ( const String & what,
const String & with )
inline

Replace string.

Definition at line 170 of file traits.h.

◆ replaceOne()

template<class String , class Char , class Latin1Char >
InternalStringT & MD::InternalStringT< String, Char, Latin1Char >::replaceOne ( long long int pos,
long long int size,
const String & with )
inline

Replace substring.

Definition at line 154 of file traits.h.

◆ right()

template<class String , class Char , class Latin1Char >
InternalStringT MD::InternalStringT< String, Char, Latin1Char >::right ( long long int n) const
inline
Returns
Right sub-string.

Definition at line 352 of file traits.h.

◆ simplified()

template<class String , class Char , class Latin1Char >
InternalStringT MD::InternalStringT< String, Char, Latin1Char >::simplified ( ) const
inline
Returns
Simplified string.

Definition at line 231 of file traits.h.

◆ sliced()

template<class String , class Char , class Latin1Char >
InternalStringT MD::InternalStringT< String, Char, Latin1Char >::sliced ( long long int pos,
long long int len = -1 ) const
inline
Returns
Sliced sub-string.

Definition at line 338 of file traits.h.

◆ split()

template<class String , class Char , class Latin1Char >
std::vector< InternalStringT > MD::InternalStringT< String, Char, Latin1Char >::split ( const InternalStringT< String, Char, Latin1Char > & sep) const
inline

Split string.

Definition at line 294 of file traits.h.

◆ virginPos()

template<class String , class Char , class Latin1Char >
long long int MD::InternalStringT< String, Char, Latin1Char >::virginPos ( long long int pos,
bool end = false ) const
inline
Returns
Virgin position from transformed.
Parameters
posTransformed position.
endIf true will be return last virgin position before transformation. For example if in virgin string 2 characters were replaced with 1, we will receive position of second character if end is true.

Definition at line 133 of file traits.h.

◆ virginSubString()

template<class String , class Char , class Latin1Char >
String MD::InternalStringT< String, Char, Latin1Char >::virginSubString ( long long int pos = 0,
long long int len = -1 ) const
inline
Returns
Virgin sub-string with position and length in the transformed string.

Definition at line 86 of file traits.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.