summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/TextToken.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-24 12:20:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-24 12:20:50 +0000
commit5aed15a8d8d8e4f913539761be496e0d1ba2c4f0 (patch)
treedd9996ff223dc09154ed3c65d51ce528a9b2f81d /plugins/IEView/src/TextToken.cpp
parent2cd063aa25c633f2bf4213e007bf2df5d610d8e1 (diff)
replace wcslen to mir_wstrlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TextToken.cpp')
-rw-r--r--plugins/IEView/src/TextToken.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/IEView/src/TextToken.cpp b/plugins/IEView/src/TextToken.cpp
index e44dc5e35b..ad08ee7856 100644
--- a/plugins/IEView/src/TextToken.cpp
+++ b/plugins/IEView/src/TextToken.cpp
@@ -78,7 +78,7 @@ static int countNoWhitespace(const wchar_t *str)
TextToken* TextToken::tokenizeBBCodes(const wchar_t *text)
{
- return tokenizeBBCodes(text, (int)wcslen(text));
+ return tokenizeBBCodes(text, (int)mir_wstrlen(text));
}
// TODO: Add the following BBCodes: code
@@ -239,7 +239,7 @@ TextToken* TextToken::tokenizeLinks(const wchar_t *text)
{
TextToken *firstToken = NULL, *lastToken = NULL;
int textLen = 0;
- int l = (int)wcslen(text);
+ int l = (int)mir_wstrlen(text);
for (int i = 0; i <= l;) {
int newTokenType, newTokenSize;
int urlLen = Utils::detectURL(text + i);
@@ -295,7 +295,7 @@ TextToken* TextToken::tokenizeLinks(const wchar_t *text)
TextToken* TextToken::tokenizeSmileys(MCONTACT hContact, const char *proto, const wchar_t *text, bool isSent)
{
TextToken *firstToken = NULL, *lastToken = NULL;
- int l = (int)wcslen(text);
+ int l = (int)mir_wstrlen(text);
if (!Options::isSmileyAdd())
return new TextToken(TEXT, text, l);
@@ -352,7 +352,7 @@ TextToken* TextToken::tokenizeChatFormatting(const wchar_t *text)
{
TextToken *firstToken = NULL, *lastToken = NULL;
int textLen = 0;
- int l = (int)wcslen(text);
+ int l = (int)mir_wstrlen(text);
wchar_t* tokenBuffer = new wchar_t[l + 1];
for (int i = 0; i <= l;) {
int newTokenType = TEXT;
@@ -521,7 +521,7 @@ void TextToken::toString(CMStringW &str)
if (match != NULL) {
match += 2;
wchar_t *match2 = wcsstr(match, L"&");
- int len = match2 != NULL ? match2 - match : (int)wcslen(match);
+ int len = match2 != NULL ? match2 - match : (int)mir_wstrlen(match);
match = mir_wstrdup(match);
match[len] = 0;
int width = 0;