String.cc File Reference
#include "squid.h"
#include "mem/forward.h"
#include "SquidString.h"
#include <climits>
Include dependency graph for String.cc:

Go to the source code of this file.

Functions

static bool nilCmp (const bool thisIsNilOrEmpty, const bool otherIsNilOrEmpty, int &result)
 
int stringHasWhitespace (const char *s)
 
int stringHasCntl (const char *s)
 
char * strwordtok (char *buf, char **t)
 
const char * checkNullString (const char *p)
 

Function Documentation

◆ checkNullString()

const char * checkNullString ( const char *  p)

Definition at line 399 of file String.cc.

◆ nilCmp()

static bool nilCmp ( const bool  thisIsNilOrEmpty,
const bool  otherIsNilOrEmpty,
int result 
)
static

compare NULL and empty strings because str*cmp() may fail on NULL strings and because we need to return consistent results for strncmp(count == 0).

Definition at line 220 of file String.cc.

Referenced by String::caseCmp(), and String::cmp().

◆ stringHasCntl()

int stringHasCntl ( const char *  s)

Definition at line 294 of file String.cc.

Referenced by urlCanonicalCleanWithoutRequest().

◆ stringHasWhitespace()

int stringHasWhitespace ( const char *  s)

Definition at line 287 of file String.cc.

References w_space.

Referenced by AnyP::Uri::parse().

◆ strwordtok()

char * strwordtok ( char *  buf,
char **  t 
)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors