GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIBUTF-8(3) FreeBSD Library Functions Manual LIBUTF-8(3)

utf-8
library function manual page

#include <utf-8.h>

unsigned int
fgetu8(FILE *input);

int
fputu8(unsigned int c, FILE *output);

unsigned int
sgetu8(unsigned char *string, int *chars);

char *
sputu8(unsigned int c, char *buffer);

The utf-8 library ⟨libutf-8.so⟩ contains functions for the conversion of Unicode files and strings. These functions have been designed in the style of the fgetc() and fputc() standard C functions.

The fgetu8() and fputu8() functions work with files. The sgetu8() and sputu8() functions convert text strings in the computer memory.

The fgetu8() and sgetu8() functions convert UTF-8 formatted data into a 32-bit Unicode-style integer (UCS-4); the fputu8() and sputu8() functions do the opposite conversion.

fgetu8(3), fputu8(3), sgetu8(3), sputu8(3)

F. Yergeau, UTF-8, a transformation format of Unicode and ISO 10646, RFC2044.

D. Goldsmith, M. Davis, Using Unicode with MIME, RFC1641.

ISO 10646-1: 1993 (``Unicode''), RFC 2044: 1996 (``UTF-8''), ANSI X3.159-1989 (“ANSI C89”).

This manual page was written by G. Adam Stanislav ⟨adam@whizkidtech.net⟩.
April 1, 1999 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.