Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_DRAFT void U_EXPORT2 vzone_write ( VZone zone,
UChar *&  result,
int32_t &  resultLength,
UErrorCode status 
)

Writes RFC2445 VTIMEZONE data for this time zone

Parameters:
zone,the vzone to use
result Output param to filled in with the VTIMEZONE data.
resultLength,length of the result output
status Output param to filled in with a success or an error. ICU 4.4

Definition at line 79 of file vzone.cpp.

References UnicodeString::getBuffer(), and UnicodeString::length().

                                                                                      {
    UnicodeString s;
    ((VTimeZone*)zone)->VTimeZone::write(s, status);

    resultLength = s.length();
    result = (UChar*)uprv_malloc(resultLength);
    memcpy(result,s.getBuffer(),resultLength);

    return;
}


Generated by  Doxygen 1.6.0   Back to index