strip_str
- Function
- August 22, 2025
Table of Contents
strip_str
strip_str
Description
Internal implementation for strip functions. Used by StrStrip, StrLStrip, and StrRStrip macros.
Usage example (Cross-references)
- In
Ops.h:277
:
/// FAILURE : A zero-length Str object
///
#define StrStrip(str, chars_to_strip) strip_str(str, chars_to_strip, 0)
///
- In
Ops.h:290
:
/// FAILURE : A zero-length Str object
///
#define StrLStrip(str, chars_to_strip) strip_str(str, chars_to_strip, -1)
///
- In
Ops.h:303
:
/// FAILURE : A zero-length Str object
///
#define StrRStrip(str, chars_to_strip) strip_str(str, chars_to_strip, 1)
#ifdef __cplusplus
- In
Str.c:160
:
// = -1 means from left
// = 1 means from right
Str strip_str(Str* s, const char* chars_to_strip, int split_direction) {
ValidateStr(s);