| 817 | */ |
| 818 | |
| 819 | static 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 | /* |
no test coverage detected