| 844 | */ |
| 845 | |
| 846 | static 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 | /* |
no test coverage detected