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


Manual Reference Pages  -  NEED_UCONVERT (3)

NAME

need_uconvert - Tells if a string requires encoding conversion. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

int need_uconvert(const char *s, int type, int newtype);

DESCRIPTION

Given a pointer to a string (‘s’), a description of the type of the string (‘type’), and the type that you would like this string to be converted into (‘newtype’), this function tells you whether any conversion is required. No conversion will be needed if ‘type’ and ‘newtype’ are the same, or if one type is ASCII, the other is UTF-8, and the string contains only character values less than 128. As a convenience shortcut, you can pass the value U_CURRENT as either of the type parameters, to represent whatever text encoding format is currently selected. Example:

   if (need_uconvert(text, U_UTF8, U_CURRENT)) {
      /* conversion is required */
   }

RETURN VALUE

Returns non-zero if any conversion is required or zero otherwise.

SEE ALSO

set_uformat(3), get_uformat(3), do_uconvert(3), uconvert(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro NEED_UCONVERT (3) version 4.4.2

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