/** @file
* IPRT - Simple character type classiciation and conversion.
*/
/*
* Copyright (C) 2006-2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
#ifndef ___iprt_ctype_h
#define ___iprt_ctype_h
/** @name C locale predicates and conversions.
*
* For most practical purposes, this can safely be used when parsing UTF-8
* strings. Just keep in mind that we only deal with the first 127 chars and
* that full correctness is only archived using the non-existing RTLocIs* API.
*
* @remarks Use the marcros, not the inlined functions.
*
* @remarks ASSUMES the source code includes the basic ASCII chars. This is a
* general IPRT assumption.
* @{ */
/**
* Checks for a blank character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for a control character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
|| ch == 0x7f;
}
/**
* Checks for a decimal digit.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for a lower case character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for an octal digit.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for a printable character (whitespace included).
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for punctuation (?).
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for a white-space character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for an upper case character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for a hexadecimal digit.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for an alphabetic character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for an alphanumerical character.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Checks for a printable character whitespace excluded.
*
* @returns true / false.
* @param ch The character to test.
*/
{
}
/**
* Converts the character to lower case if applictable.
*
* @returns lower cased character or ch.
* @param ch The character to test.
*/
{
}
/**
* Converts the character to upper case if applictable.
*
* @returns upper cased character or ch.
* @param ch The character to test.
*/
{
}
/** @} */
#endif