• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

Public Member Functions | List of all members
FixString Class Reference

#include <utils.h>

Public Member Functions

 FixString ()
 
 FixString (const char *, int len)
 
const char * ascii ()
 
bool first (char &c)
 
bool isEmpty ()
 
bool isValid ()
 
int len ()
 
 operator QString () const
 
void set (const char *s, int l)
 
bool stripFirst (char &)
 
bool stripInt64 (int64 &, bool stripSpaces=true)
 
bool stripName (FixString &)
 
bool stripPrefix (const char *)
 
void stripSpaces ()
 
void stripSurroundingSpaces ()
 
bool stripUInt (uint &, bool stripSpaces=true)
 
bool stripUInt64 (uint64 &, bool stripSpaces=true)
 
FixString stripUntil (char)
 

Detailed Description

A simple, constant string class.

For use with zero-copy strings from mapped files.

Definition at line 38 of file utils.h.

Constructor & Destructor Documentation

FixString::FixString ( )
inline

Definition at line 42 of file utils.h.

FixString::FixString ( const char *  str,
int  len 
)

FixString never does a deep copy! You have to make sure that the string starting at the char pointer is valid trough the lifetime of FixString.

Definition at line 34 of file utils.cpp.

Member Function Documentation

const char* FixString::ascii ( )
inline

Definition at line 52 of file utils.h.

bool FixString::first ( char &  c)
inline

Definition at line 57 of file utils.h.

bool FixString::isEmpty ( )
inline

Definition at line 53 of file utils.h.

bool FixString::isValid ( )
inline

Definition at line 54 of file utils.h.

int FixString::len ( )
inline

Definition at line 51 of file utils.h.

FixString::operator QString ( ) const
inline

Definition at line 88 of file utils.h.

void FixString::set ( const char *  s,
int  l 
)
inline

Definition at line 60 of file utils.h.

bool FixString::stripFirst ( char &  c)

Definition at line 40 of file utils.cpp.

bool FixString::stripInt64 ( int64 &  v,
bool  stripSpaces = true 
)

Definition at line 273 of file utils.cpp.

bool FixString::stripName ( FixString &  s)

Strip name: [A-Za-z_][0-9A_Za-z_]*.

Definition at line 163 of file utils.cpp.

bool FixString::stripPrefix ( const char *  p)

Definition at line 53 of file utils.cpp.

void FixString::stripSpaces ( )

Strip leading spaces.

Definition at line 155 of file utils.cpp.

void FixString::stripSurroundingSpaces ( )

Strip leading and trailing spaces.

Definition at line 139 of file utils.cpp.

bool FixString::stripUInt ( uint &  ,
bool  stripSpaces = true 
)

Definition at line 75 of file utils.cpp.

bool FixString::stripUInt64 ( uint64 &  v,
bool  stripSpaces = true 
)

Definition at line 210 of file utils.cpp.

FixString FixString::stripUntil ( char  c)

Strip string until char appears or end.

Strips char, too.

Definition at line 189 of file utils.cpp.


The documentation for this class was generated from the following files:
  • utils.h
  • utils.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal