X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/tools/toolutil/toolutil.h diff --git a/icuSources/tools/toolutil/toolutil.h b/icuSources/tools/toolutil/toolutil.h index be32942c..297c83b3 100644 --- a/icuSources/tools/toolutil/toolutil.h +++ b/icuSources/tools/toolutil/toolutil.h @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 1999-2010, International Business Machines +* Copyright (C) 1999-2013, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -21,7 +21,8 @@ #include "unicode/utypes.h" -#ifdef XP_CPLUSPLUS + +#ifdef __cplusplus #include "unicode/errorcode.h" @@ -83,7 +84,7 @@ findBasename(const char *filename); * If successful, copies the directory name into the output buffer along with * a terminating NULL. * - * If there isn't a directory name in the path, it returns the current directory string ('.'). + * If there isn't a directory name in the path, it returns an empty string. * @param path the full pathname to inspect. * @param buffer the output buffer * @param bufLen the output buffer length @@ -107,6 +108,16 @@ getCurrentYear(void); U_CAPI void U_EXPORT2 uprv_mkdir(const char *pathname, UErrorCode *status); +#if !UCONFIG_NO_FILE_IO +/** + * Return TRUE if the named item exists + * @param file filename + * @return TRUE if named item (file, dir, etc) exists, FALSE otherwise + */ +U_CAPI UBool U_EXPORT2 +uprv_fileExists(const char *file); +#endif + /** * Return the modification date for the specified file or directory. * Return value is undefined if there was an error.