GRPC C++  1.39.1
Functions
slice_string_helpers.h File Reference
#include <grpc/support/port_platform.h>
#include <stdbool.h>
#include <stddef.h>
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include "src/core/lib/gpr/string.h"

Go to the source code of this file.

Functions

char * grpc_dump_slice (const grpc_slice &slice, uint32_t flags)
 
grpc_slice grpc_dump_slice_to_slice (const grpc_slice &slice, 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 slice,
uint32_t  flags 
)

◆ grpc_dump_slice_to_slice()

grpc_slice grpc_dump_slice_to_slice ( const grpc_slice slice,
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.