MCPcopy Create free account
hub / github.com/boostorg/build / string_rtrim

Function string_rtrim

src/engine/jam_strings.cpp:181–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void string_rtrim( string * self )
182{
183 char *p;
184 assert_invariants( self );
185 p = self->value + self->size - 1;
186 for ( ; p >= self->value && ( *p == '\0' || isspace( *p ) ); *p-- = 0 );
187}
188
189#ifndef NDEBUG
190void string_unit_test()

Callers 2

builtin_shellFunction · 0.85
string_unit_testFunction · 0.85

Calls 1

assert_invariantsFunction · 0.85

Tested by

no test coverage detected