src/nvim/fileio.c
/// Convert all backslashes in fname to forward slashes in-place,
/// unless when it looks like a URL.
Convert all backslashes in fname to forward slashes in-place,
unless when it looks like a URL.
Convert all backslashes in fname to forward slashes in - place unless when it looks like a URL .
void forward_slash(char_u *fname)
{
  char_u      *p;
  if (path_with_url((const char *)fname)) {
    return;
  }
  for (p = fname; *p != NUL; p++) {
    if (*p == '\\') {
      *p = '/';
    }
  }
}
void forward_slash ( char_u * fname ) { char_u * p ; if ( path_with_url ( ( const char * ) fname ) ) { return ; } for ( p = fname ; * p != NUL ; p ++ ) { if ( * p == ' \\ ' ) { * p = ' ' ; } } }
Convert all backslashes in fname to forward slashes in-place,
unless when it looks like a URL.
Convert all backslashes in fname to forward slashes in - place unless when it looks like a URL .
// The Big5 encoding can have '\' in the trail byte.