@@ -103,11 +103,11 @@ bool CColor_Quote::IsCppRawString(const CStringRef& cStr, int nPos)
103103 // \b = ^|[\s!"#$%&'()=@{};:<>?,.*/\-\+\[\]\]
104104 wchar_t c1 = L' ' ;
105105 if ( 2 <= nPos ){
106- c1 = cStr. At ( nPos-2 ) ;
106+ c1 = cStr[ nPos-2 ] ;
107107 }
108108 wchar_t c2 = L' ' ;
109109 if ( 3 <= nPos ){
110- c2 = cStr. At ( nPos-3 ) ;
110+ c2 = cStr[ nPos-3 ] ;
111111 }
112112 const wchar_t * pszSep = L" \t !\" #$%&'()=@{};:<>?,.*/-+[]" ;
113113 if ( (c1 == ' u' || c1 == ' U' || c1 == ' L' ) ){
@@ -117,7 +117,7 @@ bool CColor_Quote::IsCppRawString(const CStringRef& cStr, int nPos)
117117 }else if ( c1 == ' 8' && c2 == ' u' ){
118118 wchar_t c3 = L' \0 ' ;
119119 if ( 4 <= nPos ){
120- c3 = cStr. At ( nPos-4 ) ;
120+ c3 = cStr[ nPos-4 ] ;
121121 }
122122 if ( NULL != wcschr (pszSep, c3) ){
123123 return true ;
@@ -142,7 +142,7 @@ bool CColor_Quote::BeginColor(const CStringRef& cStr, int nPos)
142142 case STRING_LITERAL_CPP:
143143 if ( IsCppRawString (cStr, nPos) ){
144144 for ( int i = nPos + 1 ; i < cStr.GetLength (); i++ ){
145- if ( cStr. At (i) == ' (' ){
145+ if ( cStr[i] == ' (' ){
146146 if ( nPos + 1 < i ){
147147 m_tag = L' )' ;
148148 m_tag.append ( cStr.GetPtr ()+nPos+1 , i - (nPos + 1 ) );
@@ -179,7 +179,7 @@ bool CColor_Quote::BeginColor(const CStringRef& cStr, int nPos)
179179 break ;
180180 case STRING_LITERAL_PYTHON:
181181 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 ){
183183 m_nCOMMENTEND = Match_QuoteStr ( m_szQuote, 3 , nPos + 3 , cStr, true );
184184 m_nColorTypeIndex = 3 ;
185185 return true ;
@@ -198,9 +198,9 @@ bool CColor_Quote::BeginColor(const CStringRef& cStr, int nPos)
198198 // 終了文字列がない場合は行末までを色分け
199199 if ( m_pTypeData->m_bStringEndLine ){
200200 // 改行コードを除く
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 ){
204204 m_nCOMMENTEND = cStr.GetLength () - 2 ;
205205 }else {
206206 m_nCOMMENTEND = cStr.GetLength () - 1 ;
@@ -256,29 +256,29 @@ int CColor_Quote::Match_Quote( wchar_t wcQuote, int nPos, const CStringRef& cLin
256256 nCharChars = (Int)t_max (CLogicInt (1 ), CNativeW::GetSizeOfChar ( cLineStr.GetPtr (), cLineStr.GetLength (), i ));
257257 if ( escapeType == STRING_LITERAL_CPP ){
258258 // エスケープ \"
259- if ( 1 == nCharChars && cLineStr. At (i) == L' \\ ' ){
259+ if ( 1 == nCharChars && cLineStr[i] == L' \\ ' ){
260260 ++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 ) ){
262262 if ( pbEscapeEnd ){
263263 *pbEscapeEnd = true ;
264264 }
265265 }
266266 }else
267- if ( 1 == nCharChars && cLineStr. At (i) == wcQuote ){
267+ if ( 1 == nCharChars && cLineStr[i] == wcQuote ){
268268 return i + 1 ;
269269 }
270270 }else if ( escapeType == STRING_LITERAL_PLSQL ){
271271 // エスケープ ""
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 ){
274274 ++i;
275275 }else {
276276 return i + 1 ;
277277 }
278278 }
279279 }else {
280280 // エスケープなし
281- if ( 1 == nCharChars && cLineStr. At (i) == wcQuote ){
281+ if ( 1 == nCharChars && cLineStr[i] == wcQuote ){
282282 return i + 1 ;
283283 }
284284 }
0 commit comments