@@ -103,11 +103,11 @@ bool CColor_Quote::IsCppRawString(const CStringRef& cStr, int nPos)
103
103
// \b = ^|[\s!"#$%&'()=@{};:<>?,.*/\-\+\[\]\]
104
104
wchar_t c1 = L' ' ;
105
105
if ( 2 <= nPos ){
106
- c1 = cStr. At ( nPos-2 ) ;
106
+ c1 = cStr[ nPos-2 ] ;
107
107
}
108
108
wchar_t c2 = L' ' ;
109
109
if ( 3 <= nPos ){
110
- c2 = cStr. At ( nPos-3 ) ;
110
+ c2 = cStr[ nPos-3 ] ;
111
111
}
112
112
const wchar_t * pszSep = L" \t !\" #$%&'()=@{};:<>?,.*/-+[]" ;
113
113
if ( (c1 == ' u' || c1 == ' U' || c1 == ' L' ) ){
@@ -117,7 +117,7 @@ bool CColor_Quote::IsCppRawString(const CStringRef& cStr, int nPos)
117
117
}else if ( c1 == ' 8' && c2 == ' u' ){
118
118
wchar_t c3 = L' \0 ' ;
119
119
if ( 4 <= nPos ){
120
- c3 = cStr. At ( nPos-4 ) ;
120
+ c3 = cStr[ nPos-4 ] ;
121
121
}
122
122
if ( NULL != wcschr (pszSep, c3) ){
123
123
return true ;
@@ -142,7 +142,7 @@ bool CColor_Quote::BeginColor(const CStringRef& cStr, int nPos)
142
142
case STRING_LITERAL_CPP:
143
143
if ( IsCppRawString (cStr, nPos) ){
144
144
for ( int i = nPos + 1 ; i < cStr.GetLength (); i++ ){
145
- if ( cStr. At (i) == ' (' ){
145
+ if ( cStr[i] == ' (' ){
146
146
if ( nPos + 1 < i ){
147
147
m_tag = L' )' ;
148
148
m_tag.append ( cStr.GetPtr ()+nPos+1 , i - (nPos + 1 ) );
@@ -179,7 +179,7 @@ bool CColor_Quote::BeginColor(const CStringRef& cStr, int nPos)
179
179
break ;
180
180
case STRING_LITERAL_PYTHON:
181
181
if ( nPos + 2 < cStr.GetLength ()
182
- && cStr. At ( nPos+1 ) == m_cQuote && cStr. At ( nPos+2 ) == m_cQuote ){
182
+ && cStr[ nPos+1 ] == m_cQuote && cStr[ nPos+2 ] == m_cQuote ){
183
183
m_nCOMMENTEND = Match_QuoteStr ( m_szQuote, 3 , nPos + 3 , cStr, true );
184
184
m_nColorTypeIndex = 3 ;
185
185
return true ;
@@ -198,9 +198,9 @@ bool CColor_Quote::BeginColor(const CStringRef& cStr, int nPos)
198
198
// 終了文字列がない場合は行末までを色分け
199
199
if ( m_pTypeData->m_bStringEndLine ){
200
200
// 改行コードを除く
201
- if ( 0 < cStr.GetLength () && WCODE::IsLineDelimiter (cStr. At ( cStr.GetLength ()-1 ) , GetDllShareData ().m_Common .m_sEdit .m_bEnableExtEol ) ){
202
- if ( 1 < cStr.GetLength () && cStr. At ( cStr.GetLength ()-2 ) == WCODE::CR
203
- && cStr. At ( cStr.GetLength ()-1 ) == WCODE::LF ){
201
+ if ( 0 < cStr.GetLength () && WCODE::IsLineDelimiter (cStr[ cStr.GetLength ()-1 ] , GetDllShareData ().m_Common .m_sEdit .m_bEnableExtEol ) ){
202
+ if ( 1 < cStr.GetLength () && cStr[ cStr.GetLength ()-2 ] == WCODE::CR
203
+ && cStr[ cStr.GetLength ()-1 ] == WCODE::LF ){
204
204
m_nCOMMENTEND = cStr.GetLength () - 2 ;
205
205
}else {
206
206
m_nCOMMENTEND = cStr.GetLength () - 1 ;
@@ -256,29 +256,29 @@ int CColor_Quote::Match_Quote( wchar_t wcQuote, int nPos, const CStringRef& cLin
256
256
nCharChars = (Int)t_max (CLogicInt (1 ), CNativeW::GetSizeOfChar ( cLineStr.GetPtr (), cLineStr.GetLength (), i ));
257
257
if ( escapeType == STRING_LITERAL_CPP ){
258
258
// エスケープ \"
259
- if ( 1 == nCharChars && cLineStr. At (i) == L' \\ ' ){
259
+ if ( 1 == nCharChars && cLineStr[i] == L' \\ ' ){
260
260
++i;
261
- if ( i < cLineStr.GetLength () && WCODE::IsLineDelimiter (cLineStr. At (i) , GetDllShareData ().m_Common .m_sEdit .m_bEnableExtEol ) ){
261
+ if ( i < cLineStr.GetLength () && WCODE::IsLineDelimiter (cLineStr[i] , GetDllShareData ().m_Common .m_sEdit .m_bEnableExtEol ) ){
262
262
if ( pbEscapeEnd ){
263
263
*pbEscapeEnd = true ;
264
264
}
265
265
}
266
266
}else
267
- if ( 1 == nCharChars && cLineStr. At (i) == wcQuote ){
267
+ if ( 1 == nCharChars && cLineStr[i] == wcQuote ){
268
268
return i + 1 ;
269
269
}
270
270
}else if ( escapeType == STRING_LITERAL_PLSQL ){
271
271
// エスケープ ""
272
- if ( 1 == nCharChars && cLineStr. At (i) == wcQuote ){
273
- if ( i + 1 < cLineStr.GetLength () && cLineStr. At ( i + 1 ) == wcQuote ){
272
+ if ( 1 == nCharChars && cLineStr[i] == wcQuote ){
273
+ if ( i + 1 < cLineStr.GetLength () && cLineStr[ i + 1 ] == wcQuote ){
274
274
++i;
275
275
}else {
276
276
return i + 1 ;
277
277
}
278
278
}
279
279
}else {
280
280
// エスケープなし
281
- if ( 1 == nCharChars && cLineStr. At (i) == wcQuote ){
281
+ if ( 1 == nCharChars && cLineStr[i] == wcQuote ){
282
282
return i + 1 ;
283
283
}
284
284
}
0 commit comments