| 776 | */ |
| 777 | |
| 778 | static 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 | /* |
no test coverage detected