ICU-3417 Don't export Subformat documentation

X-SVN-Rev: 14145
This commit is contained in:
George Rhoten 2003-12-16 21:26:12 +00:00
parent 639710670d
commit 6291099978
2 changed files with 55 additions and 46 deletions

View File

@ -128,6 +128,59 @@ U_NAMESPACE_BEGIN
// -------------------------------------
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat)
/**
* A structure representing one subformat of this MessageFormat.
* Each subformat has a Format object, an offset into the plain
* pattern text fPattern, and an argument number. The argument
* number corresponds to the array of arguments to be formatted.
* @internal
*/
class MessageFormat::Subformat : public UMemory {
public:
/**
* @internal
*/
Format* format; // formatter
/**
* @internal
*/
int32_t offset; // offset into fPattern
/**
* @internal
*/
int32_t arg; // 0-based argument number
/**
* Clone that.format and assign it to this.format
* Do NOT delete this.format
* @internal
*/
Subformat& operator=(const Subformat& that) {
format = that.format ? that.format->clone() : NULL;
offset = that.offset;
arg = that.arg;
return *this;
}
/**
* @internal
*/
UBool operator==(const Subformat& that) const {
// Do cheap comparisons first
return offset == that.offset &&
arg == that.arg &&
((format == that.format) || // handles NULL
(*format == *that.format));
}
/**
* @internal
*/
UBool operator!=(const Subformat& that) const {
return !operator==(that);
}
};
//--------------------------------------------------------------------
/**

View File

@ -624,58 +624,14 @@ private:
MessageFormat(); // default constructor not implemented
/**
/*
* A structure representing one subformat of this MessageFormat.
* Each subformat has a Format object, an offset into the plain
* pattern text fPattern, and an argument number. The argument
* number corresponds to the array of arguments to be formatted.
* @internal
*/
class Subformat {
public:
/**
* @internal
*/
Format* format; // formatter
/**
* @internal
*/
int32_t offset; // offset into fPattern
/**
* @internal
*/
int32_t arg; // 0-based argument number
/**
* Clone that.format and assign it to this.format
* Do NOT delete this.format
* @internal
*/
Subformat& operator=(const Subformat& that) {
format = that.format ? that.format->clone() : NULL;
offset = that.offset;
arg = that.arg;
return *this;
}
/**
* @internal
*/
UBool operator==(const Subformat& that) const {
// Do cheap comparisons first
return offset == that.offset &&
arg == that.arg &&
((format == that.format) || // handles NULL
(*format == *that.format));
}
/**
* @internal
*/
UBool operator!=(const Subformat& that) const {
return !operator==(that);
}
};
class Subformat;
/**
* A MessageFormat contains an array of subformats. This array