Update contrib.
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
 
     4 * This component and the accompanying materials are made available
 
     5 * under the terms of the License "Eclipse Public License v1.0"
 
     6 * which accompanies this distribution, and is available
 
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 
     9 * Initial Contributors:
 
    10 * Nokia Corporation - initial contribution.
 
    15 * Contains miscellaneous utility functions that can be used by any code in security component
 
    26 #ifndef __MISCUTIL_H__
 
    27 #define __MISCUTIL_H__
 
    33  * This namespace contains common miscellaneous utilitarian functionality meant from use in security code
 
    39 	 * Recursively deletes all folders in the path (as long as they are empty)
 
    41 	 * @param aFs		Connected  filesystem session
 
    42 	 * @param aPath		Fully qualified path to start the recursive delete
 
    44 	IMPORT_C void DeletePathIfEmpty(RFs& aFs, const TDesC& aPath);
 
    46 	 * Function used to extract lines of text from a buffer. Note that this only works for non-unicode text. It skips
 
    47 	 * over blank lines and the characters '\n' or '\r' are treated as end-of-line markers.
 
    49 	 * @param aBuffer		Input buffer
 
    50 	 * @param aPos		Starting index into aBuffer (should be within the bounds of zero and length of buffer). 
 
    51 	 *				It is updated after processing and should be passed in unchanged to correctly identify next line
 
    52 	 * @param aLine		Set to point to the start of the line identified
 
    53 	 * @return			ETrue if a line was successfully extracted from the buffer, EFalse if end of buffer reached
 
    55 	IMPORT_C TBool ReadNonEmptyLineL(const TDesC8& aBuffer, TInt& aPos, TPtrC8& aLine);
 
    58 #endif // __MISCUTIL_H__