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

Function var_edit_shift

src/engine/function.cpp:846–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844 */
845
846static void var_edit_shift( string * out, int32_t pos, VAR_EDITS * edits )
847{
848#if defined( OS_CYGWIN ) || defined( OS_VMS )
849 var_edit_translate_path( out, pos, edits );
850#endif
851
852 if ( edits->upshift || edits->downshift || edits->to_slashes )
853 {
854 /* Handle upshifting, downshifting and slash translation now. */
855 char * p;
856 for ( p = out->value + pos; *p; ++p )
857 {
858 if ( edits->upshift )
859 *p = toupper( *p );
860 else if ( edits->downshift )
861 *p = tolower( *p );
862 if ( edits->to_slashes && ( *p == '\\' ) )
863 *p = '/';
864 }
865 }
866}
867
868
869/*

Callers 2

apply_modifiers_emptyFunction · 0.85

Calls 1

var_edit_translate_pathFunction · 0.85

Tested by

no test coverage detected