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

Function var_edit_shift

src/engine/function.c:778–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776 */
777
778static void var_edit_shift( string * out, size_t pos, VAR_EDITS * edits )
779{
780#if defined( OS_CYGWIN ) || defined( OS_VMS )
781 var_edit_translate_path( out, pos, edits );
782#endif
783
784 if ( edits->upshift || edits->downshift || edits->to_slashes )
785 {
786 /* Handle upshifting, downshifting and slash translation now. */
787 char * p;
788 for ( p = out->value + pos; *p; ++p )
789 {
790 if ( edits->upshift )
791 *p = toupper( *p );
792 else if ( edits->downshift )
793 *p = tolower( *p );
794 if ( edits->to_slashes && ( *p == '\\' ) )
795 *p = '/';
796 }
797 }
798}
799
800
801/*

Callers 2

apply_modifiers_emptyFunction · 0.85

Calls 1

var_edit_translate_pathFunction · 0.85

Tested by

no test coverage detected