diff options
author | Steve Huston <shuston@riverace.com> | 2002-04-10 22:19:46 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-04-10 22:19:46 +0000 |
commit | d7e27b10827ae3be5c96dae717078bcadd247bbb (patch) | |
tree | 459f2a974e7fbdeadb1a1fdea51a09563c6e3c21 /ace/OS_String.h | |
parent | e9482da7874b9c1e894995db9a10cacc0a4952aa (diff) | |
download | ATCD-d7e27b10827ae3be5c96dae717078bcadd247bbb.tar.gz |
ChangeLogTag:Wed Apr 10 17:38:31 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/OS_String.h')
-rw-r--r-- | ace/OS_String.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ace/OS_String.h b/ace/OS_String.h index 4a6e671c566..14da8b81b42 100644 --- a/ace/OS_String.h +++ b/ace/OS_String.h @@ -129,6 +129,28 @@ public: /// Finds the length of a string (ACE_WCHAR_T version). static size_t strlen (const ACE_WCHAR_T *s); + /// Finds the length of a limited-length string (char version). + /** + * @param s The character string to find the length of. + * @param maxlen The maximum number of characters that will be + * scanned for the terminating nul character. + * + * @return The length of @arg s, if the terminating nul character + * is located, else @arg maxlen. + */ + static size_t strnlen (const char *s, size_t maxlen); + + /// Finds the length of a limited-length string (ACE_WCHAR_T version). + /** + * @param s The character string to find the length of. + * @param maxlen The maximum number of characters that will be + * scanned for the terminating nul character. + * + * @return The length of @arg s, if the terminating nul character + * is located, else @arg maxlen. + */ + static size_t strnlen (const ACE_WCHAR_T *s, size_t maxlen); + /// Appends part of a string to another string (char version). static char *strncat (char *s, const char *t, size_t len); |