Added to_lower() functions

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@861 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-08-24 04:54:52 +00:00
parent ea1a165a95
commit 1c4b41005c
2 changed files with 57 additions and 0 deletions
+13
View File
@@ -11,6 +11,7 @@
#ifndef _STORAGE_SUPPORT_H
#define _STORAGE_SUPPORT_H
#include <string>
namespace BPrivate {
namespace Storage {
@@ -38,6 +39,18 @@ status_t check_entry_name(const char *entry);
//! Checks whether a path name is a valid path name.
status_t check_path_name(const char *path);
//! Returns a copy of \c str in which all alphabetic characters are lowercase.
std::string to_lower(const char *str);
//! Places a copy of \c str in \c result in which all alphabetic characters are lowercase.
void to_lower(const char *str, std::string &result);
//! Copies \c str into \c result, converting any uppercase alphabetics to lowercase.
void to_lower(const char *str, char *result);
//! Converts \c str to lowercase.
void to_lower(char *str);
}; // namespace Storage
}; // namespace BPrivate