MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

Functions
StringAPI.hxx File Reference
`#include "Compiler.h"`
`#include <string.h>`
Include dependency graph for StringAPI.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions
gcc_pure static gcc_nonnull_all size_t | StringLength (const char *p)
gcc_pure static gcc_nonnull_all const char * | StringFind (const char *haystack, const char *needle)
gcc_pure static gcc_nonnull_all char * | StringFind (char *haystack, char needle, size_t size)
gcc_pure static gcc_nonnull_all const char * | StringFind (const char *haystack, char needle, size_t size)
gcc_pure static gcc_nonnull_all const char * | StringFind (const char *haystack, char needle)
gcc_pure static gcc_nonnull_all char * | StringFind (char *haystack, char needle)
gcc_pure static gcc_nonnull_all const char * | StringFindLast (const char *haystack, char needle)
gcc_pure static gcc_nonnull_all char * | StringFindLast (char *haystack, char needle)
static gcc_nonnull_all void | UnsafeCopyString (char *dest, const char *src)
static gcc_nonnull_all char * | UnsafeCopyStringP (char *dest, const char *src)
gcc_pure static gcc_nonnull_all bool | StringIsEqual (const char *a, const char *b)
| Checks whether #a and #b are equal. More...
gcc_pure static gcc_nonnull_all bool | StringIsEqual (const char *a, const char *b, size_t length)
| Checks whether #a and #b are equal. More...
gcc_malloc static gcc_nonnull_all char * | DuplicateString (const char *p)
| Copy the string to a new allocation. More...

## Function Documentation

gcc_malloc static gcc_nonnull_all char* DuplicateString | ( | const char * | p | ) |
| inline static

Copy the string to a new allocation.

The return value must be freed with free().

Definition at line 143 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all const char* StringFind | ( | const char * | haystack,
|  | const char * | needle
| ) |  |
| inline static

Definition at line 50 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all char* StringFind | ( | char * | haystack,
|  | char | needle,
|  | size_t | size
| ) |  |
| inline static

Definition at line 57 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all const char* StringFind | ( | const char * | haystack,
|  | char | needle,
|  | size_t | size
| ) |  |
| inline static

Definition at line 64 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all const char* StringFind | ( | const char * | haystack,
|  | char | needle
| ) |  |
| inline static

Definition at line 71 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all char* StringFind | ( | char * | haystack,
|  | char | needle
| ) |  |
| inline static

Definition at line 78 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all const char* StringFindLast | ( | const char * | haystack,
|  | char | needle
| ) |  |
| inline static

Definition at line 85 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all char* StringFindLast | ( | char * | haystack,
|  | char | needle
| ) |  |
| inline static

Definition at line 92 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all bool StringIsEqual | ( | const char * | a,
|  | const char * | b
| ) |  |
| inline static

Checks whether #a and #b are equal.

Definition at line 122 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all bool StringIsEqual | ( | const char * | a,
|  | const char * | b,
|  | size_t | length
| ) |  |
| inline static

Checks whether #a and #b are equal.

Definition at line 132 of file StringAPI.hxx.

gcc_pure static gcc_nonnull_all size_t StringLength | ( | const char * | p | ) |
| inline static

Definition at line 43 of file StringAPI.hxx.

static gcc_nonnull_all void UnsafeCopyString | ( | char * | dest,
|  | const char * | src
| ) |  |
| inline static

Definition at line 99 of file StringAPI.hxx.

static gcc_nonnull_all char* UnsafeCopyStringP | ( | char * | dest,
|  | const char * | src
| ) |  |
| inline static

Definition at line 106 of file StringAPI.hxx.