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

com.squarespace.cldr.dates._CalendarFormatter_cs 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 "cs"
 * See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
 */
public class _CalendarFormatter_cs extends CalendarFormatterBase {
  public _CalendarFormatter_cs() {
    this.locale = new CLDRLocale("cs", "", "", "");
    this.firstDay = 1;
    this.minDays = 1;
    this.eras = new FieldVariants(
          new String[] {"př. n. l.", "n. l."}, 
          new String[] {"př.n.l.", "n.l."}, 
          new String[] {}, 
          new String[] {"př. n. l.", "n. l."});
    this.quartersFormat = new FieldVariants(
          new String[] {"Q1", "Q2", "Q3", "Q4"}, 
          new String[] {"1", "2", "3", "4"}, 
          new String[] {}, 
          new String[] {"1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"});
    this.quartersStandalone = new FieldVariants(
          new String[] {"Q1", "Q2", "Q3", "Q4"}, 
          new String[] {"1", "2", "3", "4"}, 
          new String[] {}, 
          new String[] {"1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"});
    this.monthsFormat = new FieldVariants(
          new String[] {"led", "úno", "bře", "dub", "kvě", "čvn", "čvc", "srp", "zář", "říj", "lis", "pro"}, 
          new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"}, 
          new String[] {}, 
          new String[] {"ledna", "února", "března", "dubna", "května", "června", "července", "srpna", "září", "října", "listopadu", "prosince"});
    this.monthsStandalone = new FieldVariants(
          new String[] {"led", "úno", "bře", "dub", "kvě", "čvn", "čvc", "srp", "zář", "říj", "lis", "pro"}, 
          new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"}, 
          new String[] {}, 
          new String[] {"leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec"});
    this.weekdaysFormat = new FieldVariants(
          new String[] {"ne", "po", "út", "st", "čt", "pá", "so"}, 
          new String[] {"N", "P", "Ú", "S", "Č", "P", "S"}, 
          new String[] {"ne", "po", "út", "st", "čt", "pá", "so"}, 
          new String[] {"neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"});
    this.weekdaysStandalone = new FieldVariants(
          new String[] {"ne", "po", "út", "st", "čt", "pá", "so"}, 
          new String[] {"N", "P", "Ú", "S", "Č", "P", "S"}, 
          new String[] {"ne", "po", "út", "st", "čt", "pá", "so"}, 
          new String[] {"neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"});
    this.dayPeriodsFormat = new FieldVariants(
          new String[] {"dop.", "odp."}, 
          new String[] {"dop.", "odp."}, 
          new String[] {}, 
          new String[] {"dop.", "odp."});
    this.dayPeriodsStandalone = new FieldVariants(
          new String[] {"dop.", "odp."}, 
          new String[] {"dop.", "odp."}, 
          new String[] {}, 
          new String[] {"dop.", "odp."});
  }

  @Override
  public void formatDate(FormatType type, ZonedDateTime d, StringBuilder b) {
    switch (type) {
      case SHORT: {
        // "dd.MM.yy"
        formatField(d, b, 'd', 2);
        b.append(".");
        formatField(d, b, 'M', 2);
        b.append(".");
        formatField(d, b, 'y', 2);
        break;
      }
      case MEDIUM: {
        // "d. M. y"
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 1);
        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: {
        // "H:mm"
        formatField(d, b, 'H', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case MEDIUM: {
        // "H:mm:ss"
        formatField(d, b, 'H', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case LONG: {
        // "H:mm:ss z"
        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: {
        // "H:mm:ss zzzz"
        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:
      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);
        b.append(".");
        break;
      }
      case "E": {
        // Pattern: "ccc"
        formatField(d, b, 'c', 3);
        break;
      }
      case "Ed": {
        // Pattern: "E d."
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(".");
        break;
      }
      case "Ehm": {
        // Pattern: "E h:mm a"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'a', 1);
        break;
      }
      case "EHm": {
        // Pattern: "E H:mm"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'H', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "Ehms": {
        // Pattern: "E h:mm:ss a"
        formatField(d, b, 'E', 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, 'a', 1);
        break;
      }
      case "EHms": {
        // Pattern: "E H:mm:ss"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'H', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "Gy": {
        // Pattern: "y G"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMM": {
        // Pattern: "LLLL y G"
        formatField(d, b, 'L', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMMd": {
        // Pattern: "d. M. y G"
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 1);
        b.append(". ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMMEd": {
        // Pattern: "E d. M. y G"
        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);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMMMd": {
        // Pattern: "d. MMMM y G"
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMMMEd": {
        // Pattern: "E d. MMMM y G"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "h": {
        // Pattern: "h a"
        formatField(d, b, 'h', 1);
        b.append(" ");
        formatField(d, b, 'a', 1);
        break;
      }
      case "H": {
        // Pattern: "H"
        formatField(d, b, 'H', 1);
        break;
      }
      case "hm": {
        // Pattern: "h:mm a"
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'a', 1);
        break;
      }
      case "Hm": {
        // Pattern: "H:mm"
        formatField(d, b, 'H', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "hms": {
        // Pattern: "h:mm:ss a"
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'a', 1);
        break;
      }
      case "Hms": {
        // Pattern: "H:mm:ss"
        formatField(d, b, 'H', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "hmsv": {
        // Pattern: "h:mm:ss a v"
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'v', 1);
        break;
      }
      case "Hmsv": {
        // Pattern: "H:mm:ss v"
        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 "hmv": {
        // Pattern: "h:mm a v"
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'v', 1);
        break;
      }
      case "Hmv": {
        // Pattern: "H:mm v"
        formatField(d, b, 'H', 1);
        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);
        b.append(".");
        break;
      }
      case "MEd": {
        // Pattern: "E d. M."
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 1);
        b.append(".");
        break;
      }
      case "MMM": {
        // Pattern: "LLL"
        formatField(d, b, 'L', 3);
        break;
      }
      case "MMMd": {
        // Pattern: "d. M."
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 1);
        b.append(".");
        break;
      }
      case "MMMEd": {
        // Pattern: "E d. M."
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 1);
        b.append(".");
        break;
      }
      case "MMMMd": {
        // Pattern: "d. MMMM"
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMEd": {
        // Pattern: "E d. MMMM"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMW-count-one": {
        // Pattern: "W. 'týden' MMMM"
        formatField(d, b, 'W', 1);
        b.append(". týden ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMW-count-few": {
        // Pattern: "W. 'týden' MMMM"
        formatField(d, b, 'W', 1);
        b.append(". týden ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMW-count-many": {
        // Pattern: "W. 'týden' MMMM"
        formatField(d, b, 'W', 1);
        b.append(". týden ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMW-count-other": {
        // Pattern: "W. 'týden' MMMM"
        formatField(d, b, 'W', 1);
        b.append(". týden ");
        formatField(d, b, 'M', 4);
        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 "yMMM": {
        // Pattern: "LLLL y"
        formatField(d, b, 'L', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMd": {
        // 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 "yMMMEd": {
        // 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 "yMMMM": {
        // Pattern: "LLLL y"
        formatField(d, b, 'L', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMMd": {
        // Pattern: "d. MMMM y"
        formatField(d, b, 'd', 1);
        b.append(". ");
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMMEd": {
        // Pattern: "E d. MMMM y"
        formatField(d, b, 'E', 1);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(". ");
        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: "w. 'týden' 'roku' y"
        formatField(d, b, 'w', 1);
        b.append(". týden roku ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-few": {
        // Pattern: "w. 'týden' 'roku' y"
        formatField(d, b, 'w', 1);
        b.append(". týden roku ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-many": {
        // Pattern: "w. 'týden' 'roku' y"
        formatField(d, b, 'w', 1);
        b.append(". týden roku ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-other": {
        // Pattern: "w. 'týden' 'roku' y"
        formatField(d, b, 'w', 1);
        b.append(". týden roku ");
        formatField(d, b, 'y', 1);
        break;
      }
      default: {
        return false;
      }
    }
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy