MPD  0.20.23
Functions
ASCII.hxx File Reference
#include "StringView.hxx"
#include "Compiler.h"
#include <assert.h>
#include <strings.h>
Include dependency graph for ASCII.hxx:

Go to the source code of this file.

Functions

gcc_pure static gcc_nonnull_all bool StringEqualsCaseASCII (const char *a, const char *b) noexcept
 Determine whether two strings are equal, ignoring case for ASCII letters. More...
 
gcc_pure static gcc_nonnull_all bool StringEqualsCaseASCII (const char *a, const char *b, size_t n) noexcept
 
gcc_pure static gcc_nonnull_all bool StringStartsWithCaseASCII (const char *haystack, StringView needle) noexcept
 
gcc_pure static gcc_nonnull_all const char * StringAfterPrefixCaseASCII (const char *haystack, StringView needle) noexcept
 

Function Documentation

◆ StringAfterPrefixCaseASCII()

gcc_pure static gcc_nonnull_all const char* StringAfterPrefixCaseASCII ( const char *  haystack,
StringView  needle 
)
inlinestaticnoexcept

Definition at line 82 of file ASCII.hxx.

◆ StringEqualsCaseASCII() [1/2]

gcc_pure static gcc_nonnull_all bool StringEqualsCaseASCII ( const char *  a,
const char *  b 
)
inlinestaticnoexcept

Determine whether two strings are equal, ignoring case for ASCII letters.

Definition at line 45 of file ASCII.hxx.

◆ StringEqualsCaseASCII() [2/2]

gcc_pure static gcc_nonnull_all bool StringEqualsCaseASCII ( const char *  a,
const char *  b,
size_t  n 
)
inlinestaticnoexcept

Definition at line 60 of file ASCII.hxx.

◆ StringStartsWithCaseASCII()

gcc_pure static gcc_nonnull_all bool StringStartsWithCaseASCII ( const char *  haystack,
StringView  needle 
)
inlinestaticnoexcept

Definition at line 75 of file ASCII.hxx.