Function rtrim

Summary

#include <include/EASTL/string.h>

(1) void rtrim()

(2) void rtrim(const value_type *p)

Function overload

Synopsis

#include <include/EASTL/string.h>

void rtrim()

Description

No description yet.

Source

Lines 3067-3072 in include/EASTL/string.h. Line 738 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline void basic_string<T, Allocator>::rtrim()
{
    const value_type array[] = { ' ', '\t', 0 }; // This is a pretty simplistic view of whitespace.
    erase(find_last_not_of(array) + 1);
}

Synopsis

#include <include/EASTL/string.h>

void rtrim(const value_type *p)

Description

No description yet.

Source

Lines 3090-3094 in include/EASTL/string.h. Line 741 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline void basic_string<T, Allocator>::rtrim(const value_type* p)
{
    erase(find_last_not_of(p) + 1);
}





Add Discussion as Guest

Log in