Lines Matching refs:dtpgo
37 IntlDatePatternGenerator_object* dtpgo; in dtpg_ctor() local
54 if (dtpgo->dtpg != NULL) { in dtpg_ctor()
55 …intl_errors_set(DTPATTERNGEN_ERROR_P(dtpgo), U_ILLEGAL_ARGUMENT_ERROR, "Cannot call constructor tw… in dtpg_ctor()
65 dtpgo->dtpg = DateTimePatternGenerator::createInstance( in dtpg_ctor()
67 DTPATTERNGEN_ERROR_CODE(dtpgo)); in dtpg_ctor()
69 if (U_FAILURE(DTPATTERNGEN_ERROR_CODE(dtpgo))) { in dtpg_ctor()
70 intl_error_set(NULL, DTPATTERNGEN_ERROR_CODE(dtpgo), in dtpg_ctor()
126 …l_stringFromChar(skeleton_uncleaned, skeleton_str, skeleton_len, DTPATTERNGEN_ERROR_CODE_P(dtpgo)); in PHP_METHOD()
128 INTL_METHOD_CHECK_STATUS(dtpgo, "Skeleton is not a valid UTF-8 string"); in PHP_METHOD()
130 …UnicodeString skeleton = dtpgo->dtpg->getSkeleton(skeleton_uncleaned, DTPATTERNGEN_ERROR_CODE(dtpg… in PHP_METHOD()
132 INTL_METHOD_CHECK_STATUS(dtpgo, "Error getting cleaned skeleton"); in PHP_METHOD()
134 UnicodeString result = dtpgo->dtpg->getBestPattern(skeleton, DTPATTERNGEN_ERROR_CODE(dtpgo)); in PHP_METHOD()
136 INTL_METHOD_CHECK_STATUS(dtpgo, "Error retrieving pattern"); in PHP_METHOD()
138 zend_string *u8str = intl_charFromString(result, DTPATTERNGEN_ERROR_CODE_P(dtpgo)); in PHP_METHOD()
140 INTL_METHOD_CHECK_STATUS(dtpgo, "Error converting result to UTF-8"); in PHP_METHOD()