From 726b284ef4ee82bb985ead6be6cc6725ceaf0d68 Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Tue, 12 Dec 2000 22:20:50 +0000 Subject: [PATCH] Replaced isalpha() and isdigit() by nsCRT equivalents which take unicode instead of char, bug 62407, r=morse, sr=alecf. --- extensions/wallet/src/wallet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/wallet/src/wallet.cpp b/extensions/wallet/src/wallet.cpp index c09658837610..9ac343e843ba 100644 --- a/extensions/wallet/src/wallet.cpp +++ b/extensions/wallet/src/wallet.cpp @@ -1667,7 +1667,7 @@ static nsString& Strip(const nsString& text, nsString& stripText) { for (PRUint32 i=0; i'~') { + if (nsCRT::IsAsciiAlpha(c) || nsCRT::IsAsciiDigit(c) || c>'~') { stripText += c; } } @@ -2134,7 +2134,7 @@ wallet_ResolvePositionalSchema(nsIDOMNode* elementNode, nsString& schema) { // } // } else { // /* failed to get the i18n interfaces, so just treat latin characters */ - if (isalpha(c) || isdigit(c)) { + if (nsCRT::IsAsciiAlpha(c) || nsCRT::IsAsciiDigit(c)) { charFound = PR_TRUE; break; // } @@ -2333,7 +2333,7 @@ wallet_GetSchemaFromDisplayableText(nsIDOMNode* elementNode, nsString& schema, P nsAutoString temp; for (i=0; i