scuffed-code/icu4c/source/tools/genrb/ustr.h
Ram Viswanadha c7298798f0 ICU-968 genrb now handles non-BMP codepoints.
Strict processing of invalid \uxxxx and \Uhhhhhhh notations

X-SVN-Rev: 4793
2001-05-25 00:16:28 +00:00

51 lines
1.3 KiB
C

/*
*******************************************************************************
*
* Copyright (C) 1998-2000, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
*
* File ustr.h
*
* Modification History:
*
* Date Name Description
* 05/28/99 stephen Creation.
*******************************************************************************
*/
#ifndef USTR_H
#define USTR_H 1
#include "unicode/utypes.h"
/* A C representation of a string "object" (to avoid realloc all the time) */
struct UString {
UChar *fChars;
int32_t fLength;
int32_t fCapacity;
};
void ustr_init(struct UString *s);
void
ustr_initChars(struct UString *s, const char* source, int32_t length, UErrorCode *status);
void ustr_deinit(struct UString *s);
void ustr_setlen(struct UString *s, int32_t len, UErrorCode *status);
void ustr_cpy(struct UString *dst, const struct UString *src,
UErrorCode *status);
void ustr_cat(struct UString *dst, const struct UString *src,
UErrorCode *status);
void ustr_ncat(struct UString *dst, const struct UString *src,
int32_t n, UErrorCode *status);
void ustr_ucat(struct UString *dst, UChar c, UErrorCode *status);
void ustr_uscat(struct UString *dst, const UChar* src,UErrorCode *status);
#endif