OS_NS_string.h File Reference

#include "ace/config-lite.h"
#include "ace/Basic_Types.h"
#include "ace/ACE_export.h"
#include "ace/OS_NS_string_base.h"
#include "ace/OS_NS_string.inl"

Include dependency graph for OS_NS_string.h:


Namespaces

namespace  ACE_OS

Functions from <cstring>

Included are the functions defined in <cstring> and their <cwchar> equivalents.

Todo:
To be complete, we should add strcoll, and strxfrm.


ACE_NAMESPACE_INLINE_FUNCTION
const void * 
ACE_OS::memchr (const void *s, int c, size_t len)
 Finds characters in a buffer (const void version).
ACE_NAMESPACE_INLINE_FUNCTION
void * 
ACE_OS::memchr (void *s, int c, size_t len)
 Finds characters in a buffer (void version).
const void * ACE_OS::memchr_emulation (const void *s, int c, size_t len)
 Emulated memchr - Finds a character in a buffer.
ACE_NAMESPACE_INLINE_FUNCTION
int 
ACE_OS::memcmp (const void *t, const void *s, size_t len)
 Compares two buffers.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
ACE_OS::memcpy (void *t, const void *s, size_t len)
 Copies one buffer to another.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
ACE_OS::memmove (void *t, const void *s, size_t len)
 Moves one buffer to another.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
ACE_OS::memset (void *s, int c, size_t len)
 Fills a buffer with a character value.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strcat (char *s, const char *t)
 Appends a string to another string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strcat (wchar_t *s, const wchar_t *t)
 Appends a string to another string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
ACE_OS::strchr (const char *s, int c)
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
ACE_OS::strchr (const wchar_t *s, wint_t c)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strchr (char *s, int c)
 Finds the first occurance of a character in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strchr (wchar_t *s, wint_t c)
 Finds the first occurance of a character in a string (wchar_t version).
char * ACE_OS::strchr_emulation (char *s, int c)
const char * ACE_OS::strchr_emulation (const char *s, int c)
ACE_NAMESPACE_INLINE_FUNCTION
int 
ACE_OS::strcmp (const char *s, const char *t)
 Compares two strings (char version).
ACE_NAMESPACE_INLINE_FUNCTION
int 
ACE_OS::strcmp (const wchar_t *s, const wchar_t *t)
 Compares two strings (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strcpy (char *s, const char *t)
 Copies a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strcpy (wchar_t *s, const wchar_t *t)
 Copies a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
ACE_OS::strcspn (const char *s, const char *reject)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
ACE_OS::strcspn (const wchar_t *s, const wchar_t *reject)
size_t ACE_OS::strcspn_emulation (const char *s, const char *reject)
 Emulated strcspn - Finds a substring in a string.
char * ACE_OS::strdup (const char *s)
 Returns a malloced duplicated string (char version).
wchar_t * ACE_OS::strdup (const wchar_t *s)
 Returns a malloced duplicated string (wchar_t version).
char * ACE_OS::strecpy (char *s, const char *t)
wchar_t * ACE_OS::strecpy (wchar_t *s, const wchar_t *t)
char * ACE_OS::strerror (int errnum)
 Returns a system error message.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strncat (char *s, const char *t, size_t len)
 Appends part of a string to another string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strncat (wchar_t *s, const wchar_t *t, size_t len)
 Appends part of a string to another string (wchar_t version).
const char * ACE_OS::strnchr (const char *s, int c, size_t len)
const wchar_t * ACE_OS::strnchr (const wchar_t *s, ACE_WINT_T c, size_t len)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strnchr (char *s, int c, size_t len)
 Finds the first occurance of a character in an array (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strnchr (wchar_t *s, ACE_WINT_T c, size_t len)
 Finds the first occurance of a character in an array (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
int 
ACE_OS::strncmp (const char *s, const char *t, size_t len)
 Compares two arrays (char version).
ACE_NAMESPACE_INLINE_FUNCTION
int 
ACE_OS::strncmp (const wchar_t *s, const wchar_t *t, size_t len)
 Compares two arrays (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
ACE_OS::strnlen (const char *s, size_t maxlen)
 Finds the length of a limited-length string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
ACE_OS::strnlen (const wchar_t *s, size_t maxlen)
 Finds the length of a limited-length string (wchar_t version).
const char * ACE_OS::strnstr (const char *s1, const char *s2, size_t len2)
const wchar_t * ACE_OS::strnstr (const wchar_t *s1, const wchar_t *s2, size_t len2)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strnstr (char *s, const char *t, size_t len)
 Finds the first occurance of a substring in an array (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strnstr (wchar_t *s, const wchar_t *t, size_t len)
 Finds the first occurance of a substring in an array (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
ACE_OS::strpbrk (const char *s1, const char *s2)
 Searches for characters in a string (const char version).
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
ACE_OS::strpbrk (const wchar_t *s1, const wchar_t *s2)
 Searches for characters in a string (const wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strpbrk (char *s1, const char *s2)
 Searches for characters in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strpbrk (wchar_t *s1, const wchar_t *s2)
 Searches for characters in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
ACE_OS::strrchr (const char *s, int c)
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
ACE_OS::strrchr (const wchar_t *s, wint_t c)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strrchr (char *s, int c)
 Finds the last occurance of a character in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strrchr (wchar_t *s, wint_t c)
 Finds the last occurance of a character in a string (wchar_t version).
char * ACE_OS::strrchr_emulation (char *s, int c)
const char * ACE_OS::strrchr_emulation (const char *s, int c)
char * ACE_OS::strsncpy (char *dst, const char *src, size_t maxlen)
 This is a "safe" c string copy function (char version).
wchar_t * ACE_OS::strsncpy (wchar_t *dst, const wchar_t *src, size_t maxlen)
 This is a "safe" c string copy function (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
ACE_OS::strspn (const char *s1, const char *s2)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
ACE_OS::strspn (const wchar_t *s1, const wchar_t *s2)
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
ACE_OS::strstr (const char *s, const char *t)
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
ACE_OS::strstr (const wchar_t *s, const wchar_t *t)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strstr (char *s, const char *t)
 Finds the first occurance of a substring in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strstr (wchar_t *s, const wchar_t *t)
 Finds the first occurance of a substring in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strtok (char *s, const char *tokens)
 Finds the next token in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strtok (wchar_t *s, const wchar_t *tokens)
 Finds the next token in a string (wchar_t version).

Defines

#define ACE_EXPORT_MACRO   ACE_Export
#define ACE_INLINE   inline

Functions

ACE_NAMESPACE_INLINE_FUNCTION
char * 
ACE_OS::strtok_r (char *s, const char *tokens, char **lasts)
 Finds the next token in a string (safe char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
ACE_OS::strtok_r (wchar_t *s, const wchar_t *tokens, wchar_t **lasts)
 Finds the next token in a string (wchar_t version).
char * ACE_OS::strtok_r_emulation (char *s, const char *tokens, char **lasts)
 Emulated strtok_r.
ACE_Export wchar_t * ACE_OS::strtok_r_emulation (wchar_t *s, const wchar_t *tokens, wchar_t **lasts)
 Emulated strtok_r (wchar_t version).

Detailed Description

Id
OS_NS_string.h,v 1.1.1.1.2.7 2005/09/13 19:07:18 giovannd Exp

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu>

Jesper S. M|ller<stophph@diku.dk>

and a cast of thousands...

Originally in OS.h.

Define Documentation

#define ACE_EXPORT_MACRO   ACE_Export
 

#define ACE_INLINE   inline
 


Generated on Wed Nov 23 15:47:15 2005 for ACE by  doxygen 1.4.5