Mirror reflection library - Puddle compile-time layer 0.5.13

puddle::CompileTimeString Struct Reference

A compile time string of characters. More...

#include <puddle/doc/concepts.hpp>

List of all members.

Public Member Functions

const char * c_str (void) const
 Returns a C-string.
Boolean empty (void) const
 Testing for emptyness.
Integer size (void) const
 Returns the size of the string.
Character front (void) const
 Returns the first character in the string.
Character at (Integer index) const
 Returns the character at the specified index.
template<int Index>
Character at_c (void) const
 Returns the character at the specified Index.
Boolean starts_with (CompileTimeString str) const
 Returns true if this string starts with the passed string.
Boolean ends_with (CompileTimeString str) const
 Returns true if this string ends with the passed string.
Boolean contains (CompileTimeString str) const
 Returns true if this string contains the passed string.
CompileTimeString step_front (void) const
 Returns this string without the first character.
CompileTimeString skip_front (Integer n) const
 Returns this string without the first n characters.
template<int N>
CompileTimeString skip_front_c (void) const
 Returns this string without the first N characters.
CompileTimeString head (Integer n) const
 Returns the first n characters from this string.
template<int N>
CompileTimeString head_c (void) const
 Returns the first N characters from this string.
CompileTimeString tail (Integer n) const
 Returns the last n characters from this string.
template<int N>
CompileTimeString tail_c (void) const
 Returns the last N characters from this string.
CompileTimeString find (CompileTimeString str) const
 Returns a substring starting with str or empty string.

Friends

Boolean operator== (CompileTimeString, CompileTimeString)
 Equality comparison.
Boolean operator!= (CompileTimeString, CompileTimeString)
 Nonequality comparison.
CompileTimeString operator+ (CompileTimeString, CompileTimeString)
 Concatenation operator.

Detailed Description

A compile time string of characters.

See also:
Mirror - Compile-time strings
MetaNamedObject

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

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.