зеркало из https://github.com/mozilla/pjs.git
Bug 317839 sr=bryner Favicon service
Original committer: brettw%gmail.com Original revision: 1.8 Original date: 2005/12/12 20:03:33
This commit is contained in:
Родитель
c915768f2f
Коммит
2655d001af
|
@ -346,8 +346,14 @@ FreeTokenList(nsVoidArray* aTokens)
|
||||||
nsresult
|
nsresult
|
||||||
TokenizeQueryString(const nsACString& aQuery, nsVoidArray* aTokens)
|
TokenizeQueryString(const nsACString& aQuery, nsVoidArray* aTokens)
|
||||||
{
|
{
|
||||||
// Strip of the "place:" prefix
|
// Strip off the "place:" prefix
|
||||||
const nsCSubstring &query = Substring(aQuery, strlen("place:"));
|
const PRUint32 prefixlen = 6; // = strlen("place:");
|
||||||
|
nsCString query;
|
||||||
|
if (aQuery.Length() > prefixlen &&
|
||||||
|
Substring(aQuery, 0, prefixlen).EqualsLiteral("place:"))
|
||||||
|
query = Substring(aQuery, prefixlen);
|
||||||
|
else
|
||||||
|
query = aQuery;
|
||||||
|
|
||||||
PRInt32 keyFirstIndex = 0;
|
PRInt32 keyFirstIndex = 0;
|
||||||
PRInt32 equalsIndex = 0;
|
PRInt32 equalsIndex = 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче