WCSXFRM(3) BSD Library Functions Manual WCSXFRM(3)NAME
wcsxfrm -- transform a wide string under locale
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <wchar.h>
size_t
wcsxfrm(wchar_t * restrict dst, const wchar_t * restrict src, size_t n);
DESCRIPTION
The wcsxfrm() function transforms a null-terminated wide character string pointed to by src according to the current locale collation order
then copies the transformed string into dst. No more than n wide characters are copied into dst, including the terminating null character
added. If n is set to 0 (it helps to determine an actual size needed for transformation), dst is permitted to be a NULL pointer.
Comparing two strings using wcscmp() after wcsxfrm() is equivalent to comparing two original strings with wcscoll().
RETURN VALUES
Upon successful completion, wcsxfrm() returns the length of the transformed string not including the terminating null character. If this
value is n or more, the contents of dst are indeterminate.
SEE ALSO setlocale(3), strxfrm(3), wcscmp(3), wcscoll(3)STANDARDS
The wcsxfrm() function conforms to ISO/IEC 9899:1999 (``ISO C99'').
BUGS
The current implementation of wcsxfrm() only works in single-byte LC_CTYPE locales, and falls back to using wcsncpy() in locales with
extended character sets.
Comparing two strings using wcscmp() after wcsxfrm() is not always equivalent to comparison with wcscoll(); wcsxfrm() only stores information
about primary collation weights into dst, whereas wcscoll() compares characters using both primary and secondary weights.
BSD October 4, 2002 BSD
Check Out this Related Man Page
WCSCOLL(3) BSD Library Functions Manual WCSCOLL(3)NAME
wcscoll -- compare wide strings according to current collation
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <wchar.h>
int
wcscoll(const wchar_t *s1, const wchar_t *s2);
DESCRIPTION
The wcscoll() function compares the null-terminated strings s1 and s2 according to the current locale collation order. In the ``C'' locale,
wcscoll() is equivalent to wcscmp().
RETURN VALUES
The wcscoll() function returns an integer greater than, equal to, or less than 0, if s1 is greater than, equal to, or less than s2.
No return value is reserved to indicate errors; callers should set errno to 0 before calling wcscoll(). If it is non-zero upon return from
wcscoll(), an error has occurred.
ERRORS
The wcscoll() function will fail if:
[EILSEQ] An invalid wide character code was specified.
[ENOMEM] Cannot allocate enough memory for temporary buffers.
SEE ALSO setlocale(3), strcoll(3), wcscmp(3), wcsxfrm(3)STANDARDS
The wcscoll() function conforms to ISO/IEC 9899:1999 (``ISO C99'').
BUGS
The current implementation of wcscoll() only works in single-byte LC_CTYPE locales, and falls back to using wcscmp() in locales with extended
character sets.
BSD October 4, 2002 BSD
Hello All
Please I have got a file called DATE.tex which consist of
01-04-2008_12:00:00
01-04-2005_12:00:00
01-04-2003_12:00:00
01-04-2007_12:00:00
01-04-2002_12:00:00
01-04-2009_12:00:00
I want to use nawk to print out the dates >=01-04-2009_12:00:00
I tried this
cat plnt.new |... (6 Replies)
hi
i am writing a hangman script and am having trouble checking the correct letters against the word
i need the script to compare the word against the letters guessed that are correct so once all the letters within the word have been guessed it will alow me to create a wining senario
eg
... (13 Replies)
Hi,
I can't figure out what I'm missing. I'm running a query to see if there are any streams recording on my DVR before starting a scripted update. I'm guessing that it is viewing $VIDEO as a string instead of an int. I've tried everything I saw on google but it still comes back as $VIDEO is... (8 Replies)