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

Function var_edit_shift

v2/engine/function.c:819–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817 */
818
819static void var_edit_shift( string * out, size_t pos, VAR_EDITS * edits )
820{
821#ifdef OS_CYGWIN
822 var_edit_cyg2win( out, pos, edits );
823#endif
824
825 if ( edits->upshift || edits->downshift || edits->to_slashes )
826 {
827 /* Handle upshifting, downshifting and slash translation now. */
828 char * p;
829 for ( p = out->value + pos; *p; ++p )
830 {
831 if ( edits->upshift )
832 *p = toupper( *p );
833 else if ( edits->downshift )
834 *p = tolower( *p );
835 if ( edits->to_slashes && ( *p == '\\' ) )
836 *p = '/';
837 }
838 }
839}
840
841
842/*

Callers 2

apply_modifiers_emptyFunction · 0.85

Calls 1

var_edit_cyg2winFunction · 0.85

Tested by

no test coverage detected