All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squarespace.cldr.dates._CalendarFormatter_ta Maven / Gradle / Ivy

//
//
// AUTO-GENERATED CLASS - DO NOT EDIT
//
//
package com.squarespace.cldr.dates;

import com.squarespace.cldr.CLDRLocale;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.ZonedDateTime;

/**
 * Locale "ta"
 * See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
 */
public class _CalendarFormatter_ta extends CalendarFormatterBase {
  public _CalendarFormatter_ta() {
    this.locale = new CLDRLocale("ta", "", "", "");
    this.firstDay = 1;
    this.minDays = 1;
    this.eras = new FieldVariants(
          new String[] {"கி.மு.", "கி.பி."}, 
          new String[] {"கி.மு.", "கி.பி."}, 
          new String[] {}, 
          new String[] {"கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"});
    this.quartersFormat = new FieldVariants(
          new String[] {"காலா.1", "காலா.2", "காலா.3", "காலா.4"}, 
          new String[] {"1", "2", "3", "4"}, 
          new String[] {}, 
          new String[] {"ஒன்றாம் காலாண்டு", "இரண்டாம் காலாண்டு", "மூன்றாம் காலாண்டு", "நான்காம் காலாண்டு"});
    this.quartersStandalone = new FieldVariants(
          new String[] {"காலா.1", "காலா.2", "காலா.3", "காலா.4"}, 
          new String[] {"1", "2", "3", "4"}, 
          new String[] {}, 
          new String[] {"ஒன்றாம் காலாண்டு", "இரண்டாம் காலாண்டு", "மூன்றாம் காலாண்டு", "நான்காம் காலாண்டு"});
    this.monthsFormat = new FieldVariants(
          new String[] {"ஜன.", "பிப்.", "மார்.", "ஏப்.", "மே", "ஜூன்", "ஜூலை", "ஆக.", "செப்.", "அக்.", "நவ.", "டிச."}, 
          new String[] {"ஜ", "பி", "மா", "ஏ", "மே", "ஜூ", "ஜூ", "ஆ", "செ", "அ", "ந", "டி"}, 
          new String[] {}, 
          new String[] {"ஜனவரி", "பிப்ரவரி", "மார்ச்", "ஏப்ரல்", "மே", "ஜூன்", "ஜூலை", "ஆகஸ்ட்", "செப்டம்பர்", "அக்டோபர்", "நவம்பர்", "டிசம்பர்"});
    this.monthsStandalone = new FieldVariants(
          new String[] {"ஜன.", "பிப்.", "மார்.", "ஏப்.", "மே", "ஜூன்", "ஜூலை", "ஆக.", "செப்.", "அக்.", "நவ.", "டிச."}, 
          new String[] {"ஜ", "பி", "மா", "ஏ", "மே", "ஜூ", "ஜூ", "ஆ", "செ", "அ", "ந", "டி"}, 
          new String[] {}, 
          new String[] {"ஜனவரி", "பிப்ரவரி", "மார்ச்", "ஏப்ரல்", "மே", "ஜூன்", "ஜூலை", "ஆகஸ்ட்", "செப்டம்பர்", "அக்டோபர்", "நவம்பர்", "டிசம்பர்"});
    this.weekdaysFormat = new FieldVariants(
          new String[] {"ஞாயி.", "திங்.", "செவ்.", "புத.", "வியா.", "வெள்.", "சனி"}, 
          new String[] {"ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"}, 
          new String[] {"ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"}, 
          new String[] {"ஞாயிறு", "திங்கள்", "செவ்வாய்", "புதன்", "வியாழன்", "வெள்ளி", "சனி"});
    this.weekdaysStandalone = new FieldVariants(
          new String[] {"ஞாயி.", "திங்.", "செவ்.", "புத.", "வியா.", "வெள்.", "சனி"}, 
          new String[] {"ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"}, 
          new String[] {"ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"}, 
          new String[] {"ஞாயிறு", "திங்கள்", "செவ்வாய்", "புதன்", "வியாழன்", "வெள்ளி", "சனி"});
    this.dayPeriodsFormat = new FieldVariants(
          new String[] {"முற்பகல்", "பிற்பகல்"}, 
          new String[] {"மு.ப", "பி.ப"}, 
          new String[] {}, 
          new String[] {"முற்பகல்", "பிற்பகல்"});
    this.dayPeriodsStandalone = new FieldVariants(
          new String[] {"முற்பகல்", "பிற்பகல்"}, 
          new String[] {"மு.ப", "பி.ப"}, 
          new String[] {}, 
          new String[] {"முற்பகல்", "பிற்பகல்"});
  }

  @Override
  public void formatDate(FormatType type, ZonedDateTime d, StringBuilder b) {
    switch (type) {
      case SHORT: {
        // "d/M/yy"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 2);
        break;
      }
      case MEDIUM: {
        // "d MMM, y"
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(", ");
        formatField(d, b, 'y', 1);
        break;
      }
      case LONG: {
        // "d MMMM, y"
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 4);
        b.append(", ");
        formatField(d, b, 'y', 1);
        break;
      }
      case FULL: {
        // "EEEE, d MMMM, y"
        formatField(d, b, 'E', 4);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 4);
        b.append(", ");
        formatField(d, b, 'y', 1);
        break;
      }
    }
  }

  @Override
  public void formatTime(FormatType type, ZonedDateTime d, StringBuilder b) {
    switch (type) {
      case SHORT: {
        // "a h:mm"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case MEDIUM: {
        // "a h:mm:ss"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case LONG: {
        // "a h:mm:ss z"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'z', 1);
        break;
      }
      case FULL: {
        // "a h:mm:ss zzzz"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'z', 4);
        break;
      }
    }
  }

  @Override
  public void formatWrapped(FormatType wrapperType, FormatType dateType, FormatType timeType,
      String dateSkel, String timeSkel, ZonedDateTime d, StringBuilder b) {
    switch (wrapperType) {
      case SHORT:
      case MEDIUM:
       {
        // "{1}, {0}"
        if (dateType != null) {
          formatDate(dateType, d, b);
        } else {
          formatSkeleton(dateSkel, d, b);
        }
        b.append(", ");
        if (timeType != null) {
          formatTime(timeType, d, b);
        } else {
          formatSkeleton(timeSkel, d, b);
        }
        break;
      }
      case LONG:
      case FULL:
       {
        // "{1} ’அன்று’ {0}"
        if (dateType != null) {
          formatDate(dateType, d, b);
        } else {
          formatSkeleton(dateSkel, d, b);
        }
        b.append(" ’அன்று’ ");
        if (timeType != null) {
          formatTime(timeType, d, b);
        } else {
          formatSkeleton(timeSkel, d, b);
        }
        break;
      }
    }
  }

  @Override
  public boolean formatSkeleton(String skeleton, ZonedDateTime d, StringBuilder b) {
    switch (skeleton) {
      case "d": {
        // Pattern: "d"
        formatField(d, b, 'd', 1);
        break;
      }
      case "E": {
        // Pattern: "ccc"
        formatField(d, b, 'c', 3);
        break;
      }
      case "Ed": {
        // Pattern: "d E"
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'E', 1);
        break;
      }
      case "Ehm": {
        // Pattern: "E a h:mm"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "EHm": {
        // Pattern: "E HH:mm"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "Ehms": {
        // Pattern: "E a h:mm:ss"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "EHms": {
        // Pattern: "E HH:mm:ss"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "Gy": {
        // Pattern: "G y"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "GyMMM": {
        // Pattern: "G y MMM"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        break;
      }
      case "GyMMMd": {
        // Pattern: "G y MMM d"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case "GyMMMEd": {
        // Pattern: "G y MMM d, E"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(", ");
        formatField(d, b, 'E', 1);
        break;
      }
      case "h": {
        // Pattern: "a h"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        break;
      }
      case "H": {
        // Pattern: "HH"
        formatField(d, b, 'H', 2);
        break;
      }
      case "hm": {
        // Pattern: "a h:mm"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "Hm": {
        // Pattern: "HH:mm"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "hms": {
        // Pattern: "a h:mm:ss"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "Hms": {
        // Pattern: "HH:mm:ss"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "hmsv": {
        // Pattern: "a h:mm:ss v"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'v', 1);
        break;
      }
      case "Hmsv": {
        // Pattern: "HH:mm:ss v"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'v', 1);
        break;
      }
      case "hmv": {
        // Pattern: "a h:mm v"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'v', 1);
        break;
      }
      case "Hmv": {
        // Pattern: "HH:mm v"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'v', 1);
        break;
      }
      case "M": {
        // Pattern: "L"
        formatField(d, b, 'L', 1);
        break;
      }
      case "Md": {
        // Pattern: "d/M"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        break;
      }
      case "MEd": {
        // Pattern: "dd-MM, E"
        formatField(d, b, 'd', 2);
        b.append("-");
        formatField(d, b, 'M', 2);
        b.append(", ");
        formatField(d, b, 'E', 1);
        break;
      }
      case "MMdd": {
        // Pattern: "dd-MM"
        formatField(d, b, 'd', 2);
        b.append("-");
        formatField(d, b, 'M', 2);
        break;
      }
      case "MMM": {
        // Pattern: "LLL"
        formatField(d, b, 'L', 3);
        break;
      }
      case "MMMd": {
        // Pattern: "MMM d"
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case "MMMEd": {
        // Pattern: "MMM d, E"
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(", ");
        formatField(d, b, 'E', 1);
        break;
      }
      case "MMMMd": {
        // Pattern: "d MMMM"
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMW-count-one": {
        // Pattern: "MMM W -ஆம் வாரம்"
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'W', 1);
        b.append(" -ஆம் வாரம்");
        break;
      }
      case "MMMMW-count-other": {
        // Pattern: "MMM W -ஆம் வாரம்"
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'W', 1);
        b.append(" -ஆம் வாரம்");
        break;
      }
      case "ms": {
        // Pattern: "mm:ss"
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "y": {
        // Pattern: "y"
        formatField(d, b, 'y', 1);
        break;
      }
      case "yM": {
        // Pattern: "M/y"
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMd": {
        // Pattern: "d/M/y"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMEd": {
        // Pattern: "E, d/M/y"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMM": {
        // Pattern: "MM-y"
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMM": {
        // Pattern: "MMM y"
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMd": {
        // Pattern: "d MMM, y"
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(", ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMEd": {
        // Pattern: "E, d MMM, y"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(", ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMM": {
        // Pattern: "MMMM y"
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yQQQ": {
        // Pattern: "QQQ y"
        formatField(d, b, 'Q', 3);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yQQQQ": {
        // Pattern: "QQQQ y"
        formatField(d, b, 'Q', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-one": {
        // Pattern: "y ஆம் ஆண்டின் w -ஆம் வாரம்"
        formatField(d, b, 'y', 1);
        b.append(" ஆம் ஆண்டின் ");
        formatField(d, b, 'w', 1);
        b.append(" -ஆம் வாரம்");
        break;
      }
      case "yw-count-other": {
        // Pattern: "y ஆம் ஆண்டின் w -ஆம் வாரம்"
        formatField(d, b, 'y', 1);
        b.append(" ஆம் ஆண்டின் ");
        formatField(d, b, 'w', 1);
        b.append(" -ஆம் வாரம்");
        break;
      }
      default: {
        return false;
      }
    }
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy