Home | History | Annotate | Download | only in i18n

Lines Matching refs:Specs

50 TransliteratorIDParser::Specs::Specs(const UnicodeString& s, const UnicodeString& t,
114 Specs* specsA = NULL;
115 Specs* specsB = NULL;
217 Specs* specs = parseFilterID(id, pos, TRUE);
218 if (specs == NULL) {
224 SingleID* single = specsToID(specs, FORWARD);
226 single->filter = specs->filter;
228 delete specs;
690 * at any location between specs or delimiters, and is returned
692 * @return a Specs object, or NULL if the parse failed. If
695 * pattern is returned in the Specs object, otherwise the returned
699 TransliteratorIDParser::Specs*
802 return new Specs(source, target, variant, sawSource, filter);
813 TransliteratorIDParser::specsToID(const Specs* specs, int32_t dir) {
817 if (specs != NULL) {
820 if (specs->sawSource) {
821 buf.append(specs->source).append(TARGET_SEP);
823 basicPrefix = specs->source;
826 buf.append(specs->target);
828 buf.append(specs->target).append(TARGET_SEP).append(specs->source);
830 if (specs->variant.length() != 0) {
831 buf.append(VARIANT_SEP).append(specs->variant);
835 if (specs->filter.length() != 0) {
836 buf.insert(0, specs->filter);
844 * Given a Specs object, return a SingleID representing the
851 TransliteratorIDParser::specsToSpecialInverse(const Specs& specs, UErrorCode &status) {
852 if (0!=specs.source.caseCompare(ANY, U_FOLD_CASE_DEFAULT)) {
861 inverseTarget = (UnicodeString*) SPECIAL_INVERSES->get(specs.target);
869 if (specs.filter.length() != 0) {
870 buf.append(specs.filter);
872 if (specs.sawSource) {
880 if (specs.variant.length() != 0) {
881 buf.append(VARIANT_SEP).append(specs.variant);
882 basicID.append(VARIANT_SEP).append(specs.variant);