FLINT3.7.0-dev

_gr_str_is_space, _gr_str_find_sep, _gr_str_strip_brackets, _gr_str_blank, _gr_str_trim

Synopsis#include <flint/gr_vec.h>
int _gr_str_is_space(char c)source
const char * _gr_str_find_sep(const char * s, const char * end, int * err)source
int _gr_str_strip_brackets(const char ** content_begin, const char ** content_end, const char * s, char open, char close)source
int _gr_str_blank(const char * s, const char * end)source
void _gr_str_trim(const char ** s, const char ** end)source

String helpers shared by gr_vec_set_str and gr_mat_set_str: test for a whitespace character; find the next top-level comma between s and end, tracking the nesting of (), [] and {} and setting *err on unbalanced input; find the content between a leading open and its matching close bracket; test whether a range is blank; and trim whitespace from both ends of a range.

Cite this page

The FLINT team, “_gr_str_is_space, _gr_str_find_sep, _gr_str_strip_brackets, _gr_str_blank, _gr_str_trim (gr_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_vec/_gr_str_is_space.html (generated 2026-10-20).