C Language: Wide character set operation function (Unicode encoding)

Source: Internet
Author: User

C Language: Wide character set operation function (Unicode encoding) character classification: wide character function general C function Description Iswalnum () isalnum () test character is a number or letter Iswalpha () is        Alpha () test whether the character is the letter Iswcntrl () Iscntrl () test whether the character is a control iswdigit () isdigit () The test character is a number iswgraph () Isgraph () tests whether the character is a visible character iswlower () Islower () test whether the character is lowercase characters iswprint () isprint () test whether the character is a printable word     Character iswpunct () ispunct () tests whether the characters are punctuation iswspace () isspace () The test character is a blank symbol iswupper () isupper ()     Tests whether a character is uppercase characters iswxdigit () Isxdigit () tests whether a character is a hexadecimal numeric case conversion: Wide character function general C function Description Towlower () ToLower ()      Convert character to lowercase towupper () toupper () convert character to uppercase: Wide character function general C function Description Wcscoll () strcoll () Compare string date and time conversions: Wide character function description strftime () formats the date and time according to the specified string format and locale Wcsftime () based on the specified string Format and locale settings format date and time, and return a wide string strptime () converts a string to a time value according to the specified format, which is the inverse of strftime printing and scanning a string: Wide character function description fprintf ()/fwprintf () formatted output with vararg parameter fscanf ()/fwscanf () formatted read-in printf () uses the VARARG parameter's formatted output to the standard output scanf () from the standard input Format read-in sprintf ()/swprintf () formatted as a string sscanf () according to the VARARG parameter table read the vfprintf () in a string format/vfwprintf () format output to file using Stdarg parameter Table vprintf () format output to standard output vsprintf using Stdarg parameter table ( )/vswprintf () formats the STDARG parameter table and writes to the string number conversion: Wide character function general C function Description Wcstod () strtod () converts the initial part of a wide character to a double-precision floating-point   Wcstol () strtol () converts the initial portion of a wide character to a long integer Wcstoul () strtoul () converts the initial part of a wide character to an unsigned long integer multibyte character and wide character conversion and manipulation: Wide character function description Mblen () determines the number of bytes of a character based on locale settings mbstowcs () converts a multibyte string to a wide string MBTOWC ()/BTOWC () converts a multibyte character to a wide character wcstombs () converts a wide string to a multibyte string wctomb ()/Wctob () converts wide characters into multibyte character input and output: The wide character function general C function describes FGETWC () fgetc () reads a character from the stream and converts it to a wide character fgetws ( ) fgets () reads a string from the stream and converts it to a wide string FPUTWC () FPUTC () converts the wide character to multibyte characters and outputs to the standard output fputws () fput         s () converts wide string to multibyte character and outputs to standard output string GETWC () getc () reads characters from standard input and converts to wide character Getwchar () GetChar () Read characters from standard input and convert to wide character None gets () uses Fgetws () PUTWC () PUTC () to convert wide characters to multibyte characters and write to standard output        Out Putwchar () Putchar () converts wide characters to multibyte characters and writes to standard output None puts () using Fputws () UNGETWC () UNGETC () descriptors a wide character back into the input stream. String manipulation: The wide char function general C function Description Wcscat () strcat () A string to the trailing W of another string  Csncat () Strncat () is similar to Wcscat () and specifies the glue length of the bonded string.             WCSCHR () STRCHR () finds the first position of a substring WCSRCHR () STRRCHR () finds the first position of a substring from the end of the string wcspbrk () STRPBRK () finds the position of the first occurrence of any character in another string from a character string Wcswcs ()/wcsstr () STRCHR () finds the first occurrence of another string in a string wcscspn () strcspn () returns the initial number that does not contain a second string wcsspn () STRSPN () returns the initial number containing the second string wcscpy () strcpy () Copy string wcsncpy () strncpy (         ) similar to wcscpy (), specifying the number of copies wcscmp () strcmp () compare two wide Strings wcsncmp () strncmp ()          Similar to WCSCMP (), also specify the number of comparison character strings Wcslen () strlen () get the number of wide strings wcstok () strtok () The wide string is decomposed into a series of strings according to the identifier wcswidth () None gets the width of the wide string wcwidth () None gets the width of the wide character There are also wmemcpy (), WMEMCHR (), wmemcmp (), Wmemmove (), Wmemset () corresponding to the memory operation

C Language: Wide character set operation function (Unicode encoding)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.