Home | History | Annotate | Download | only in genrb

Lines Matching full:res

219 void res_write_xml(struct SResource *res, const char* id, const char* language, UBool isTopLevel, UErrorCode *status);
534 res, const char *container, const char *restype, const char *mimetype, const char *id, UErrorCode *status)
541 if (res->fKey >= 0 && uprv_strcmp(srBundle->fKeys + res->fKey, "") != 0) {
542 resname = srBundle->fKeys + res->fKey;
565 if (res->fComment.fLength > 0) {
567 printComments(&res->fComment, resname, TRUE, status);
603 string_write_xml(struct SResource *res, const char* id, const char* /*language*/, UErrorCode *status) {
613 sid = printContainer(res, trans_unit, NULL, NULL, id, status);
619 buf = convertAndEscape(&buf, 0, &bufLen, res->u.fString.fChars, res->u.fString.fLength, status);
628 printNoteElements(&res->fComment, status);
640 alias_write_xml(struct SResource *res, const char* id, const char* /*language*/, UErrorCode *status) {
645 sid = printContainer(res, trans_unit, alias_restype, NULL, id, status);
651 buf = convertAndEscape(&buf, 0, &bufLen, res->u.fString.fChars, res->u.fString.fLength, status);
659 printNoteElements(&res->fComment, status);
671 array_write_xml(struct SResource *res, const char* id, const char* language, UErrorCode *status) {
678 sid = printContainer(res, group, array_restype, NULL, id, status);
680 current = res->u.fArray.fFirst;
710 intvector_write_xml(struct SResource *res, const char* id, const char* /*language*/, UErrorCode *status) {
717 sid = printContainer(res, group, intvector_restype, NULL, id, status);
719 for(i = 0; i < res->u.fIntVector.fCount; i += 1) {
724 len = itostr(buf, res->u.fIntVector.fArray[i], 10, 0);
759 int_write_xml(struct SResource *res, const char* id, const char* /*language*/, UErrorCode *status) {
764 sid = printContainer(res, trans_unit, integer_restype, NULL, id, status);
770 len = itostr(buf, res->u.fIntValue.fValue, 10, 0);
775 printNoteElements(&res->fComment, status);
787 bin_write_xml(struct SResource *res, const char* id, const char* /*language*/, UErrorCode *status) {
795 (res->u.fBinaryValue.fFileName !=NULL ?
796 uprv_strlen(res->u.fBinaryValue.fFileName) :0)));
803 if(res->u.fBinaryValue.fFileName != NULL){
804 uprv_strcpy(fileName, res->u.fBinaryValue.fFileName);
830 sid = printContainer(res, bin_unit, binary_restype, m_type, id, status);
847 printNoteElements(&res->fComment, status);
856 sid = printContainer(res, bin_unit, binary_restype, m_type, id, status);
867 while(i <res->u.fBinaryValue.fLength){
868 len = itostr(temp, res->u.fBinaryValue.fData[i], 16, 2);
879 while(i <res->u.fBinaryValue.fLength){
880 len = itostr(temp, res->u.fBinaryValue.fData[i], 16, 2);
891 printNoteElements(&res->fComment, status);
907 table_write_xml(struct SResource *res, const char* id, const char* language, UBool isTopLevel, UErrorCode *status) {
919 sid = printContainer(res, group, table_restype, NULL, id, status);
925 save = current = res->u.fTable.fFirst;
949 res_write_xml(struct SResource *res, const char* id, const char* language, UBool isTopLevel, UErrorCode *status) {
955 if (res != NULL) {
956 switch (res->fType) {
958 string_write_xml (res, id, language, status);
962 alias_write_xml (res, id, language, status);
966 intvector_write_xml (res, id, language, status);
970 bin_write_xml (res, id, language, status);
974 int_write_xml (res, id, language, status);
978 array_write_xml (res, id, language, status);
983 table_write_xml (res, id, language, isTopLevel, status);