Logo Search packages:      
Sourcecode: xapian-omega version File versions

stringutils.h File Reference


Detailed Description

Various handy helpers which std::string really should provide.

Definition in file stringutils.h.

#include <xapian/visibility.h>
#include <algorithm>
#include <string>
#include <string.h>

Go to the source code of this file.

Namespaces

namespace  Xapian
namespace  Xapian::Internal

Defines

#define CONST_STRLEN(S)   (sizeof(S"") - 1)
#define STRINGIZE(X)   STRINGIZE_(X)
 The STRINGIZE macro converts its parameter into a string constant.
#define STRINGIZE_(X)   #X

Functions

bool C_isalnum (char ch)
bool C_isalpha (char ch)
bool C_isdigit (char ch)
bool C_islower (char ch)
bool C_isnotalnum (char ch)
bool C_isnotalpha (char ch)
bool C_isnotdigit (char ch)
bool C_isnotlower (char ch)
bool C_isnotsign (char ch)
bool C_isnotspace (char ch)
bool C_isnotupper (char ch)
bool C_isnotxdigit (char ch)
bool C_issign (char ch)
bool C_isspace (char ch)
bool C_isupdig (char ch)
bool C_isupper (char ch)
bool C_isxdigit (char ch)
char C_tolower (char ch)
char C_toupper (char ch)
std::string::size_type common_prefix_length (const std::string &a, const std::string &b)
bool endswith (const std::string &s, const std::string &sfx)
bool endswith (const std::string &s, const char *sfx)
bool endswith (const std::string &s, const char *sfx, size_t len)
bool endswith (const std::string &s, char sfx)
bool startswith (const std::string &s, const std::string &pfx)
bool startswith (const std::string &s, const char *pfx)
bool startswith (const std::string &s, const char *pfx, size_t len)
bool startswith (const std::string &s, char pfx)

Variables

const unsigned char Xapian::Internal::IS_DIGIT = 0x01
const unsigned char Xapian::Internal::IS_HEX = 0x08
const unsigned char Xapian::Internal::IS_LOWER = 0x02
const unsigned char Xapian::Internal::IS_SIGN = 0x10
const unsigned char Xapian::Internal::IS_SPACE = 0x20
const unsigned char Xapian::Internal::IS_UPPER = 0x04


Generated by  Doxygen 1.6.0   Back to index