equal
deleted
inserted
replaced
15 * Contains miscellaneous utility functions that can be used by any code in security component |
15 * Contains miscellaneous utility functions that can be used by any code in security component |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 |
|
21 |
|
22 /** |
20 /** |
23 @file |
21 @file |
24 @internalComponent |
22 @publishedPartner |
|
23 @released |
25 */ |
24 */ |
26 |
25 |
27 #ifndef __MISCUTIL_H__ |
26 #ifndef __MISCUTIL_H__ |
28 #define __MISCUTIL_H__ |
27 #define __MISCUTIL_H__ |
29 |
28 |
30 #include <e32base.h> |
29 #include <e32base.h> |
|
30 #include <f32file.h> |
31 |
31 |
32 /** |
32 /** |
33 * This namespace contains common miscellaneous utilitarian functionality meant from use in security code |
33 * This namespace contains common miscellaneous utilitarian functionality meant from use in security code |
34 */ |
34 */ |
|
35 |
35 namespace MiscUtil |
36 namespace MiscUtil |
36 { |
37 { |
|
38 /* |
|
39 * Recursively deletes all folders in the path (as long as they are empty) |
|
40 * |
|
41 * @param aFs Connected filesystem session |
|
42 * @param aPath Fully qualified path to start the recursive delete |
|
43 */ |
|
44 IMPORT_C void DeletePathIfEmpty(RFs& aFs, const TDesC& aPath); |
37 /* |
45 /* |
38 * Function used to extract lines of text from a buffer. Note that this only works for non-unicode text. It skips |
46 * Function used to extract lines of text from a buffer. Note that this only works for non-unicode text. It skips |
39 * over blank lines and the characters '\n' or '\r' are treated as end-of-line markers. |
47 * over blank lines and the characters '\n' or '\r' are treated as end-of-line markers. |
40 * |
48 * |
41 * @param aBuffer Input buffer |
49 * @param aBuffer Input buffer |