/* ascii.h
* Copyright (C) 2004-2007, The Perl Foundation.
* SVN Info
* $Id: ascii.h 23777 2007-12-12 03:36:35Z petdance $
* Overview:
* This is the header for the ascii charset functions
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#ifndef PARROT_CHARSET_ASCII_H_GUARD
#define PARROT_CHARSET_ASCII_H_GUARD
/*
* common functions for ascii-ish charsets
*/
/* HEADERIZER BEGIN: src/charset/ascii.c */
PARROT_WARN_UNUSED_RESULT
INTVAL ascii_compare(PARROT_INTERP,
ARGIN(const STRING *lhs),
ARGIN(const STRING *rhs))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);
PARROT_PURE_FUNCTION
size_t ascii_compute_hash(SHIM_INTERP,
ARGIN(const STRING *source_string),
size_t seed)
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
INTVAL ascii_cs_index(PARROT_INTERP,
NOTNULL(STRING *source_string),
NOTNULL(STRING *search_string),
UINTVAL offset)
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);
PARROT_WARN_UNUSED_RESULT
INTVAL ascii_cs_rindex(PARROT_INTERP,
NOTNULL(STRING *source_string),
NOTNULL(STRING *search_string),
UINTVAL offset)
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);
PARROT_CANNOT_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
STRING * ascii_get_graphemes(PARROT_INTERP,
NOTNULL(STRING *source_string),
UINTVAL offset,
UINTVAL count)
__attribute__nonnull__(1)
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
STRING * ascii_get_graphemes_inplace(PARROT_INTERP,
NOTNULL(STRING *source_string),
UINTVAL offset,
UINTVAL count,
NOTNULL(STRING *dest_string))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(5);
PARROT_CANNOT_RETURN_NULL
STRING * charset_cvt_ascii_to_binary(PARROT_INTERP,
NOTNULL(STRING *src),
NULLOK(STRING *dest))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
PARROT_CANNOT_RETURN_NULL
STRING * charset_cvt_ascii_to_iso_8859_1(PARROT_INTERP,
NOTNULL(STRING *src),
NULLOK(STRING *dest))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
INTVAL mixed_cs_index(PARROT_INTERP,
NOTNULL(STRING *src),
NOTNULL(STRING *search),
UINTVAL offs)
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);
PARROT_CANNOT_RETURN_NULL
const CHARSET * Parrot_charset_ascii_init(PARROT_INTERP)
__attribute__nonnull__(1);
/* HEADERIZER END: src/charset/ascii.c */
#endif /* PARROT_CHARSET_ASCII_H_GUARD */
/*
* Local variables:
* c-file-style: "parrot"
* End:
* vim: expandtab shiftwidth=4:
*/
syntax highlighted by Code2HTML, v. 0.9.1