GRPC C++  1.39.1
Functions
slice_string_helpers.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/slice/slice_string_helpers.h"
#include <string.h>
#include <grpc/support/log.h>
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/slice/slice_internal.h"

Functions

char * grpc_dump_slice (const grpc_slice &s, uint32_t flags)
 
grpc_slice grpc_dump_slice_to_slice (const grpc_slice &s, uint32_t flags)
 
void grpc_slice_split (grpc_slice str, const char *sep, grpc_slice_buffer *dst)
 Split str by the separator sep. More...
 
void grpc_slice_split_without_space (grpc_slice str, const char *sep, grpc_slice_buffer *dst)
 Split str by the separator sep and remove the leading and trailing spaces of each resulting token. More...
 
bool grpc_parse_slice_to_uint32 (grpc_slice str, uint32_t *result)
 

Function Documentation

◆ grpc_dump_slice()

char* grpc_dump_slice ( const grpc_slice s,
uint32_t  flags 
)

◆ grpc_dump_slice_to_slice()

grpc_slice grpc_dump_slice_to_slice ( const grpc_slice s,
uint32_t  flags 
)

◆ grpc_parse_slice_to_uint32()

bool grpc_parse_slice_to_uint32 ( grpc_slice  str,
uint32_t *  result 
)

◆ grpc_slice_split()

void grpc_slice_split ( grpc_slice  str,
const char *  sep,
grpc_slice_buffer dst 
)

Split str by the separator sep.

Results are stored in dst, which should be a properly initialized instance.

◆ grpc_slice_split_without_space()

void grpc_slice_split_without_space ( grpc_slice  str,
const char *  sep,
grpc_slice_buffer dst 
)

Split str by the separator sep and remove the leading and trailing spaces of each resulting token.

Results are stored in dst, which should be a properly initialized instance.