casing.txt   [plain text]


//*******************************************************************************
//*
//*   Copyright (C) 2002, International Business Machines
//*   Corporation and others.  All Rights Reserved.
//*
//*******************************************************************************

casing {
    Info {
        Description { "This is test data file for string casing" }

        LongDescription { "each item is an array with"
                      "input string, result string, locale ID, break iterator"
                      "the break iterator is specified as an int, same as in UBreakIteratorType:"
                      "0=UBRK_CHARACTER  1=UBRK_WORD  2=UBRK_LINE  3=UBRK_SENTENCE  4=UBRK_TITLE  -1=default"
                     }
    }
    TestData {
      titlecasing {
        Headers { "Input", "Output", "Locale", "Type" }
        Cases {
            { " tHe QUIcK bRoWn", " The Quick Brown", "", "4" },
            { "DŽDždžLJLjljNJNjnj", "DžDžDžLjLjLjNjNjNj", "", "0" }, // UBRK_CHARACTER
            { "ljubav ljubav", "Ljubav Ljubav", "", "-1" }, // Lj vs. L+j
            { "'oH dOn'T tItLeCaSe AfTeR lEtTeR+'", "'Oh Don't Titlecase After Letter+'", "", "-1" }
        }
      }
    }
}