fixes bug 267532 "Excessive calls to IsDBCSLeadByte from net_CoalesceDirs?" r=andreas.otte sr=bryner

git-svn-id: svn://10.0.0.236/trunk@165050 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2004-11-06 01:55:49 +00:00
parent 68ab503918
commit 31397754be
2 changed files with 1 additions and 16 deletions

View File

@@ -51,10 +51,6 @@
#include "netCore.h"
#include "prprf.h"
#if defined(XP_WIN)
#include <windows.h> // ::IsDBCSLeadByte need
#endif
//----------------------------------------------------------------------------
// Init/Shutdown
//----------------------------------------------------------------------------
@@ -292,17 +288,6 @@ net_CoalesceDirs(netCoalesceFlags flags, char* path)
(*fwdPtr != '?') &&
(*fwdPtr != '#'); ++fwdPtr)
{
#if defined(XP_WIN)
// At first, If this is DBCS character, it skips next character.
if (::IsDBCSLeadByte(*fwdPtr) && *(fwdPtr+1) != '\0')
{
*urlPtr++ = *fwdPtr++;
*urlPtr++ = *fwdPtr;
continue;
}
#endif
if (*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '/' )
{
// remove . followed by slash

View File

@@ -83,7 +83,7 @@ NS_HIDDEN_(nsresult) net_ParseFileURL(const nsACString &inURL,
nsACString &outFileBaseName,
nsACString &outFileExtension);
/* handle .. in dirs while resolving URLs */
/* handle .. in dirs while resolving URLs (path is UTF-8) */
NS_HIDDEN_(void) net_CoalesceDirs(netCoalesceFlags flags, char* path);
/**