From a5eabbb5359edf774ac7dcb8794ee820f555ef76 Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 5 Oct 2007 04:01:23 +0000 Subject: stip '[size]' bbcodes git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@355 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/subst.cpp | 5 +++++ tipper/tipper.mdsp | 10 +++++----- tipper/version.h | 2 +- yapp/services.cpp | 5 +++++ yapp/version.h | 2 +- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/tipper/subst.cpp b/tipper/subst.cpp index aeed3ac..266e8dd 100644 --- a/tipper/subst.cpp +++ b/tipper/subst.cpp @@ -28,6 +28,11 @@ void StripBBCodesInPlace(TCHAR *text) { read++;// skip the ']' } else if(len - read >= 8 && (_tcsnicmp(text + read, _T("[/color]"), 8) == 0)) read += 8; + else if(len - read >= 5 && (_tcsnicmp(text + read, _T("[size"), 5) == 0)) { + while(read < len && text[read] != L']') read++; + read++;// skip the ']' + } else if(len - read >= 7 && (_tcsnicmp(text + read, _T("[/size]"), 7) == 0)) + read += 7; else { if(text[read] != text[write]) text[write] = text[read]; read++; write++; diff --git a/tipper/tipper.mdsp b/tipper/tipper.mdsp index 54ff494..57536d2 100644 --- a/tipper/tipper.mdsp +++ b/tipper/tipper.mdsp @@ -104,9 +104,9 @@ extraResourceOptions= 1=resource.rc [Other] [History] -version.h,543 -m_tipper.h,760 -popwin.cpp,4146 -tipper.cpp,1265 message_pump.cpp,4377 -options.cpp,0 +tipper.cpp,1265 +popwin.cpp,4146 +m_tipper.h,760 +version.h,520 +options.cpp,648 diff --git a/tipper/version.h b/tipper/version.h index 372aed5..b69343d 100644 --- a/tipper/version.h +++ b/tipper/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 4 #define __RELEASE_NUM 0 -#define __BUILD_NUM 10 +#define __BUILD_NUM 11 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM diff --git a/yapp/services.cpp b/yapp/services.cpp index 1f822a9..2a5c71c 100644 --- a/yapp/services.cpp +++ b/yapp/services.cpp @@ -34,6 +34,11 @@ void StripBBCodesInPlace(wchar_t *text) { read++;// skip the ']' } else if(len - read >= 8 && (wcsnicmp(text + read, L"[/color]", 8) == 0)) read += 8; + else if(len - read >= 5 && (wcsnicmp(text + read, L"[size", 5) == 0)) { + while(read < len && text[read] != L']') read++; + read++;// skip the ']' + } else if(len - read >= 7 && (wcsnicmp(text + read, L"[/size]", 8) == 0)) + read += 7; else { if(text[read] != text[write]) text[write] = text[read]; read++; write++; diff --git a/yapp/version.h b/yapp/version.h index 53b5dbd..c816a66 100644 --- a/yapp/version.h +++ b/yapp/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 5 #define __RELEASE_NUM 0 -#define __BUILD_NUM 3 +#define __BUILD_NUM 4 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3