* null terminate it and convert wchar_ts to chars
*/
if(nulLen >= _STACK_BUFFER_CAPACITY){
- /* Should rarely occcur */
+ /* Should rarely occur */
/* allocate new buffer buffer */
pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1));
if(pWStack==NULL){
goto error;
}
} else {
- // Colllect transitions after the start time
+ // Collect transitions after the start time
int32_t startTimes;
DateTimeRule::TimeRuleType timeType;
int32_t idx;
/**
* Assert that the given character is NOT within the variable range.
- * If it is, return FALSE. This is neccesary to ensure that the
+ * If it is, return FALSE. This is necessary to ensure that the
* variable range does not overlap characters used in a rule.
*/
UBool TransliteratorParser::checkVariableRange(UChar32 ch) const {
/**
* Assert that the given character is NOT within the variable range.
- * If it is, return false. This is neccesary to ensure that the
+ * If it is, return false. This is necessary to ensure that the
* variable range does not overlap characters used in a rule.
* @param ch the given character.
* @return True, if the given character is NOT within the variable range.
const UnicodeString emptyString;
- // Mappping from source to target styles for alias fallback.
+ // Mapping from source to target styles for alias fallback.
int32_t fallBackCache[UDAT_STYLE_COUNT];
void adoptCombinedDateAndTime(SimpleFormatter *fmtToAdopt) {
* names in this array will be treated as public rule set names by the API. Each subsequent
* element is an array of localizations of these names. The first element of one of these
* subarrays is the locale name, and the remaining elements are localizations of the
- * public rule set names, in the same order as they were listed in the first arrray.</p>
+ * public rule set names, in the same order as they were listed in the first array.</p>
* <p>In the syntax, angle brackets '<', '>' are used to delimit the arrays, and comma ',' is used
* to separate elements of an array. Whitespace is ignored, unless quoted.</p>
* <p>For example:<pre>
#include "unicode/uformattedvalue.h"
-/* Internal fucntion used by all the test format files */
+/* Internal function used by all the test format files */
UChar* myDateFormat(UDateFormat *dat, UDate d);
return runTest();
}
UBool res=FALSE;
- // Test only the specified fucntion
+ // Test only the specified function
for (int i = 1; i < _remainingArgc; ++i) {
if (_argv[i][0] != '-') {
char* name = (char*) _argv[i];
// or "<!DOCTYPE foo [internal dtd]>
// TODO: we don't actually parse the DOCTYPE or internal subsets.
// Some internal dtd subsets could confuse this simple-minded
- // attempt at skipping over them, specifically, occcurences
+ // attempt at skipping over them, specifically, occurrences
// of closeing square brackets. These could appear in comments,
// or in parameter entity declarations, for example.
mXMLDoctype(UnicodeString(
static NumberFormat createInstance(ULocale desiredLocale, int choice) {
// If the choice is PLURALCURRENCYSTYLE, the pattern is not a single
// pattern, it is a pattern set, so we do not need to get them here.
- // If the choice is ISOCURRENCYSTYLE, the pattern is the currrency
+ // If the choice is ISOCURRENCYSTYLE, the pattern is the currency
// pattern in the locale but by replacing the single currency sign
// with double currency sign.
String pattern = getPattern(desiredLocale, choice);
/**
* Assert that the given character is NOT within the variable range.
- * If it is, signal an error. This is neccesary to ensure that the
+ * If it is, signal an error. This is necessary to ensure that the
* variable range does not overlap characters used in a rule.
*/
private void checkVariableRange(int ch, String rule, int start) {
private ResourceBundle rb = null;
/**
- * Creates the Transliterator IME this is automatically callled by the
+ * Creates the Transliterator IME this is automatically called by the
* JVM when the Transliterator IME is selected from the input method list.
*
* @return InputMethod The Transliterator IME object.
lookups.remove(name);
}
}
- // Add new lookups if neccesary
+ // Add new lookups if necessary
if (currentTrans != null && currentTrans.indexOf("{") >= 0) {
while (currentTrans.indexOf("{") >= 0) {
currentTrans = currentTrans.substring(currentTrans.indexOf("{")+1,currentTrans.length());