strip_str

Table of Contents

strip_str

Description

Internal implementation for strip functions. Used by StrStrip, StrLStrip, and StrRStrip macros.

Usage example (Cross-references)

    /// FAILURE : A zero-length Str object
    ///
    #define StrStrip(str, chars_to_strip) strip_str(str, chars_to_strip, 0)
    
    ///
    /// FAILURE : A zero-length Str object
    ///
    #define StrLStrip(str, chars_to_strip) strip_str(str, chars_to_strip, -1)
    
    ///
    /// FAILURE : A zero-length Str object
    ///
    #define StrRStrip(str, chars_to_strip) strip_str(str, chars_to_strip, 1)
    
    #ifdef __cplusplus
    //                 = -1 means from left
    //                 = 1 means from right
    Str strip_str(Str* s, const char* chars_to_strip, int split_direction) {
    ValidateStr(s);

Share :