srcanamdw_os/leavescan/source/leavescan.cpp
branchRCL_3
changeset 1 d4b442d23379
parent 0 83f4b4db085c
child 2 99082257a271
equal deleted inserted replaced
0:83f4b4db085c 1:d4b442d23379
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
   514 	else if(lineCommentStartPosn == string::npos)
   514 	else if(lineCommentStartPosn == string::npos)
   515 	{
   515 	{
   516 		// Valid Block comment, verify that the function name by applying smartfind
   516 		// Valid Block comment, verify that the function name by applying smartfind
   517 		isvalidlocationforBlock = SmartFind(aFile, aName, blockCommentStartPosn); 
   517 		isvalidlocationforBlock = SmartFind(aFile, aName, blockCommentStartPosn); 
   518 		if( (isvalidlocationforBlock == string::npos) || // There is no occurrence of name
   518 		if( (isvalidlocationforBlock == string::npos) || // There is no occurrence of name
   519 			((isvalidlocationforBlock > aStartbraceposn) && (isvalidlocationforBlock != string::npos))) // The name exists but that is inside function block
   519 			((isvalidlocationforBlock > aStartbraceposn) && (isvalidlocationforBlock != string::npos))) //// The name exists but that is inside function block
   520 		{
   520 		{
   521 			return true; 
   521 			return true; 
   522 		}
   522 		}
   523 		else
   523 		else
   524 		{
   524 		{