SysTryReturn(NID_GRP, length >= 0 && length < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",length, pSimpleText->GetTextLength());
- if (pText[length] == (wchar_t)L' ')
+ if (pText[length] == (wchar_t)L' ' || pText[length] == TEXT_JAPANESE_SPACE)
{
GetRegion(length + elementTextOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, index >= 0 && index < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",index, pSimpleText->GetTextLength());
- if (pText[index] == (wchar_t)L' ')
+ if (pText[index] == (wchar_t)L' ' || pText[index] == TEXT_JAPANESE_SPACE)
{
GetRegion(textIndexFromElementOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, length >= 0 && length < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",length, pSimpleText->GetTextLength());
- if (pText[length] == (wchar_t)L' ')
+ if (pText[length] == (wchar_t)L' ' || pText[length] == TEXT_JAPANESE_SPACE)
{
GetRegion(length + elementTextOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, index >= 0 && index < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",index, pSimpleText->GetTextLength());
- if (pText[index] == (wchar_t)L' ')
+ if (pText[index] == (wchar_t)L' ' || pText[index] == TEXT_JAPANESE_SPACE)
{
GetRegion(textIndexFromElementOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, length >= 0 && length < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",length, pSimpleText->GetTextLength());
- if (pText[length] == (wchar_t)L' ')
+ if (pText[length] == (wchar_t)L' ' || pText[length] == TEXT_JAPANESE_SPACE)
{
GetRegion(length + elementTextOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, index >= 0 && index < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",index, pSimpleText->GetTextLength());
- if (pText[index] == (wchar_t)L' ')
+ if (pText[index] == (wchar_t)L' ' || pText[index] == TEXT_JAPANESE_SPACE)
{
GetRegion(textIndexFromElementOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, length >= 0 && length < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",length, pSimpleText->GetTextLength());
- if (pText[length] == (wchar_t)L' ')
+ if (pText[length] == (wchar_t)L' ' || pText[length] == TEXT_JAPANESE_SPACE)
{
GetRegion(length + elementTextOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
SysTryReturn(NID_GRP, index >= 0 && index < pSimpleText->GetTextLength()
, E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)",index, pSimpleText->GetTextLength());
- if (pText[index] == (wchar_t)L' ')
+ if (pText[index] == (wchar_t)L' ' || pText[index] == TEXT_JAPANESE_SPACE)
{
GetRegion(textIndexFromElementOffset, 1, spaceCharDim.width, spaceCharDim.height);
textLength--;
, String(L""), E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] text index(%d) must greater than 0 and must be less than total string length(%d)"
,index, pSimpleText->GetTextLength());
- if (pText[index] == (wchar_t)L' ')
+ if (pText[index] == (wchar_t)L' ' || pText[index] == TEXT_JAPANESE_SPACE)
{
remainingLength--;
lineOffset++;
#include <new>
#include <FBaseCharacter.h>
#include <FBaseSysLog.h>
+#include "FGrp_TextCommon.h"
#include "FGrp_TextTextCutLinkParser.h"
using namespace Tizen::Base;
index++;
}
}
- else if (text[index] != null && text[index] != L' ' && text[index] != L')' &&
- text[index] != L']' && text[index] != 0xFFFC &&
- text[index] != 0x000A && text[index] != 0x000D)
+ else if (text[index] != null && text[index] != L' ' && text[index] != TEXT_JAPANESE_SPACE &&
+ text[index] != L')' && text[index] != L']' && text[index] != 0xFFFC &&
+ text[index] != 0x000A && text[index] != 0x000D)
{
return false;
}
{
oneDot = true;
}
- else if (text[index + j] == L' ' || text[index + j] == L'(' || text[index + j] == L')')
+ else if (text[index + j] == L' ' || text[index + j] == TEXT_JAPANESE_SPACE || text[index + j] == L'(' || text[index + j] == L')')
{
// empty statement
}
while (index < totalLength &&
(Character::IsDigit(text[index]) || (text[index] == L'*') ||
(text[index] == L'#') || (text[index] == L'-') ||
- (text[index] == L' ') || (text[index] == L'+') ||
+ (text[index] == L' ') || (text[index] == TEXT_JAPANESE_SPACE) || (text[index] == L'+') ||
(text[index] == L'.') || (text[index] == L'(') ||
(text[index] == L')') || (index == linkOffset && (text[linkOffset] == L'+'))))
{
index++;
- if (blankCount == 0 && text[index] == L' ')
+ if (blankCount == 0 && (text[index] == L' ' || text[index] == TEXT_JAPANESE_SPACE))
{
blankCount++;
}
- else if (blankCount == 1 && text[index] == L' ')
+ else if (blankCount == 1 && (text[index] == L' ' || text[index] == TEXT_JAPANESE_SPACE))
{
blankCount++;
break;
}
}
- if (text[index - 1] == L' ')
+ if (text[index - 1] == L' ' || text[index - 1] == TEXT_JAPANESE_SPACE)
{
index -= 1;
- while (text[index] == L' ')
+ while (text[index] == L' ' || text[index] == TEXT_JAPANESE_SPACE)
{
index--;
}