Main Page   Class Hierarchy   Compound List   File List   Header Files   Sources   Compound Members   File Members  

urep.h

This is the verbatim text of the urep.h include file.
/*
*******************************************************************************
*   Copyright (C) 1997-2000, International Business Machines
*   Corporation and others.  All Rights Reserved.
*******************************************************************************
*   Date        Name        Description
*   06/23/00    aliu        Creation.
*******************************************************************************
*/

#ifndef UREP_H
#define UREP_H

#include "unicode/utypes.h"

/********************************************************************
 * General Notes
 ********************************************************************
 * TODO
 * Add usage scenario
 * Add test code
 * Talk about pinning
 * Talk about "can truncate result if out of memory"
 */

/********************************************************************
 * Data Structures
 ********************************************************************/

typedef void* UReplaceable;

typedef struct _UReplaceableCallbacks {

    int32_t (*length)(const UReplaceable* rep);

    UChar   (*charAt)(const UReplaceable* rep,
                      int32_t offset);

    UChar32 (*char32At)(const UReplaceable* rep,
                        int32_t offset);
    
    void    (*replace)(UReplaceable* rep,
                       int32_t start,
                       int32_t limit,
                       const UChar* text,
                       int32_t textLength);
    
    void    (*copy)(UReplaceable* rep,
                    int32_t start,
                    int32_t limit,
                    int32_t dest);    

} UReplaceableCallbacks;

#endif

Generated at Wed Aug 16 16:05:56 2000 for ICU1.6 by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999