ICU-420 make header files build by themselves

X-SVN-Rev: 1558
This commit is contained in:
Steven R. Loomis 2000-06-03 04:18:06 +00:00
parent c3e0b6d2b3
commit 3ec60c904e
4 changed files with 18 additions and 8 deletions

View file

@ -20,6 +20,12 @@
* and some common definitions.
*/
/* utf.h must be included first. */
#ifndef __UTF_H__
# include "unicode/utf.h"
#endif
#ifndef __UTF8_H__
#define __UTF8_H__

View file

@ -177,4 +177,13 @@ Collator::getDisplayName( const Locale& objectLocale,
return objectLocale.getDisplayName(Locale::getDefault(), name);
}
void
Collator::getVersion(UVersionInfo versionInfo) const
{
if(versionInfo!=NULL) {
uprv_memcpy(versionInfo, fVersion, U_MAX_VERSION_LENGTH);
}
}
//eof

View file

@ -49,7 +49,6 @@
#include "unicode/utypes.h"
#include "unicode/unistr.h"
#include "unicode/normlzr.h"
#include "cmemory.h"
class CollationKey;
@ -602,12 +601,5 @@ Collator::getDecomposition() const
return decmp;
}
inline void
Collator::getVersion(UVersionInfo versionInfo) const
{
if(versionInfo!=NULL) {
uprv_memcpy(versionInfo, fVersion, U_MAX_VERSION_LENGTH);
}
}
#endif

View file

@ -10,6 +10,9 @@
#ifndef PARSEERR_H
#define PARSEERR_H
#include "unicode/utypes.h"
#include "unicode/unistr.h"
/**
* A ParseError struct is used to returned detailed information about
* parsing errors. It is used by ICU parsing engines that parse long