This commit is contained in:
ftang%netscape.com 2000-04-11 22:33:13 +00:00
Родитель ad63066e1a
Коммит f8f567af61
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -475,11 +475,11 @@ NS_IMETHODIMP nsJISx4501LineBreaker::Prev(
PRUint32 cur = aPos; PRUint32 cur = aPos;
if(NEED_CONTEXTUAL_ANALYSIS(aText[cur-1])) if(NEED_CONTEXTUAL_ANALYSIS(aText[cur-1]))
{ {
c1 = this->ContextualAnalysis(((cur-1)>0)?aText[cur-2]:0, c2 = this->ContextualAnalysis(((cur-1)>0)?aText[cur-2]:0,
aText[cur-1], aText[cur-1],
(cur<aLen) ?aText[cur]:0); (cur<aLen) ?aText[cur]:0);
} else { } else {
c1 = this->GetClass(aText[cur-1]); c2 = this->GetClass(aText[cur-1]);
} }
// To Do: // To Do:
// //
@ -489,11 +489,11 @@ NS_IMETHODIMP nsJISx4501LineBreaker::Prev(
{ {
if(NEED_CONTEXTUAL_ANALYSIS(aText[cur-1])) if(NEED_CONTEXTUAL_ANALYSIS(aText[cur-1]))
{ {
c2= this->ContextualAnalysis(((cur-1)>0)?aText[cur-2]:0, c1= this->ContextualAnalysis(((cur-1)>0)?aText[cur-2]:0,
aText[cur-1], aText[cur-1],
(cur<aLen) ?aText[cur]:0); (cur<aLen) ?aText[cur]:0);
} else { } else {
c2 = this->GetClass(aText[cur-1]); c1 = this->GetClass(aText[cur-1]);
} }
if(GetPair(c1, c2)) { if(GetPair(c1, c2)) {
@ -501,7 +501,7 @@ NS_IMETHODIMP nsJISx4501LineBreaker::Prev(
*oNeedMoreText = PR_FALSE; *oNeedMoreText = PR_FALSE;
return NS_OK; return NS_OK;
} }
c1 = c2; c2 = c1;
} }
*oPrev = 0; *oPrev = 0;
*oNeedMoreText = PR_TRUE; *oNeedMoreText = PR_TRUE;