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

com.squarespace.cldr.dates._CalendarFormatter_pt_AO 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 "pt-AO"
 * See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
 */
public class _CalendarFormatter_pt_AO extends CalendarFormatterBase {
  public _CalendarFormatter_pt_AO() {
    this.locale = new CLDRLocale("pt", "", "AO", "");
    this.firstDay = 1;
    this.minDays = 1;
    this.eras = new FieldVariants(
          new String[] {"a.C.", "d.C."}, 
          new String[] {"a.C.", "d.C."}, 
          new String[] {}, 
          new String[] {"antes de Cristo", "depois de Cristo"});
    this.quartersFormat = new FieldVariants(
          new String[] {"T1", "T2", "T3", "T4"}, 
          new String[] {"1", "2", "3", "4"}, 
          new String[] {}, 
          new String[] {"1.º trimestre", "2.º trimestre", "3.º trimestre", "4.º trimestre"});
    this.quartersStandalone = new FieldVariants(
          new String[] {"T1", "T2", "T3", "T4"}, 
          new String[] {"1", "2", "3", "4"}, 
          new String[] {}, 
          new String[] {"1.º trimestre", "2.º trimestre", "3.º trimestre", "4.º trimestre"});
    this.monthsFormat = new FieldVariants(
          new String[] {"jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"}, 
          new String[] {"J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"}, 
          new String[] {}, 
          new String[] {"janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"});
    this.monthsStandalone = new FieldVariants(
          new String[] {"jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"}, 
          new String[] {"J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"}, 
          new String[] {}, 
          new String[] {"janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"});
    this.weekdaysFormat = new FieldVariants(
          new String[] {"domingo", "segunda", "terça", "quarta", "quinta", "sexta", "sábado"}, 
          new String[] {"D", "S", "T", "Q", "Q", "S", "S"}, 
          new String[] {"dom", "seg", "ter", "qua", "qui", "sex", "sáb"}, 
          new String[] {"domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"});
    this.weekdaysStandalone = new FieldVariants(
          new String[] {"domingo", "segunda", "terça", "quarta", "quinta", "sexta", "sábado"}, 
          new String[] {"D", "S", "T", "Q", "Q", "S", "S"}, 
          new String[] {"dom", "seg", "ter", "qua", "qui", "sex", "sáb"}, 
          new String[] {"domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"});
    this.dayPeriodsFormat = new FieldVariants(
          new String[] {"a.m.", "p.m."}, 
          new String[] {"a.m.", "p.m."}, 
          new String[] {}, 
          new String[] {"da manhã", "da tarde"});
    this.dayPeriodsStandalone = new FieldVariants(
          new String[] {"a.m.", "p.m."}, 
          new String[] {"a.m.", "p.m."}, 
          new String[] {}, 
          new String[] {"manhã", "tarde"});
  }

  @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: {
        // "dd/MM/y"
        formatField(d, b, 'd', 2);
        b.append("/");
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case LONG: {
        // "d 'de' MMMM 'de' y"
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case FULL: {
        // "EEEE, d 'de' MMMM 'de' y"
        formatField(d, b, 'E', 4);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
    }
  }

  @Override
  public void formatTime(FormatType type, ZonedDateTime d, StringBuilder b) {
    switch (type) {
      case SHORT: {
        // "HH:mm"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case MEDIUM: {
        // "HH:mm:ss"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case LONG: {
        // "HH:mm:ss z"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'z', 1);
        break;
      }
      case FULL: {
        // "HH:mm:ss zzzz"
        formatField(d, b, 'H', 2);
        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} 'às' {0}"
        if (dateType != null) {
          formatDate(dateType, d, b);
        } else {
          formatSkeleton(dateSkel, d, b);
        }
        b.append(" às ");
        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: "E, d"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        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, 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, 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, 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: "y G"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMM": {
        // Pattern: "MMM 'de' y G"
        formatField(d, b, 'M', 3);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMMd": {
        // Pattern: "d 'de' MMM 'de' y G"
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 3);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'G', 1);
        break;
      }
      case "GyMMMEd": {
        // Pattern: "E, d 'de' MMM 'de' y G"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 3);
        b.append(" de ");
        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: "HH"
        formatField(d, b, 'H', 2);
        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: "HH:mm"
        formatField(d, b, 'H', 2);
        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: "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: "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: "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: "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: "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: "dd/MM"
        formatField(d, b, 'd', 2);
        b.append("/");
        formatField(d, b, 'M', 2);
        break;
      }
      case "MEd": {
        // Pattern: "E, dd/MM"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 2);
        b.append("/");
        formatField(d, b, 'M', 2);
        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: "d/MM"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 2);
        break;
      }
      case "MMMEd": {
        // Pattern: "E, d/MM"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 2);
        break;
      }
      case "MMMMd": {
        // Pattern: "d 'de' MMMM"
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMEd": {
        // Pattern: "ccc, d 'de' MMMM"
        formatField(d, b, 'c', 3);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "MMMMW-count-one": {
        // Pattern: "W.'ª' 'semana' 'de' MMM"
        formatField(d, b, 'W', 1);
        b.append(".ª semana de ");
        formatField(d, b, 'M', 3);
        break;
      }
      case "MMMMW-count-other": {
        // Pattern: "W.'ª' 'semana' 'de' MMM"
        formatField(d, b, 'W', 1);
        b.append(".ª semana de ");
        formatField(d, b, 'M', 3);
        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: "MM/y"
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMd": {
        // Pattern: "dd/MM/y"
        formatField(d, b, 'd', 2);
        b.append("/");
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMEd": {
        // Pattern: "E, dd/MM/y"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 2);
        b.append("/");
        formatField(d, b, 'M', 2);
        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: "MM/y"
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMd": {
        // Pattern: "d/MM/y"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMEd": {
        // Pattern: "E, d/MM/y"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMEEEEd": {
        // Pattern: "EEEE, d/MM/y"
        formatField(d, b, 'E', 4);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 2);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMM": {
        // Pattern: "MMMM 'de' y"
        formatField(d, b, 'M', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMMd": {
        // Pattern: "d 'de' MMMM 'de' y"
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMMMMEd": {
        // Pattern: "ccc, d 'de' MMMM 'de' y"
        formatField(d, b, 'c', 3);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append(" de ");
        formatField(d, b, 'M', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yQQQ": {
        // Pattern: "QQQQ 'de' y"
        formatField(d, b, 'Q', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yQQQQ": {
        // Pattern: "QQQQ 'de' y"
        formatField(d, b, 'Q', 4);
        b.append(" de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-one": {
        // Pattern: "w.'ª' 'semana' 'de' y"
        formatField(d, b, 'w', 1);
        b.append(".ª semana de ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-other": {
        // Pattern: "w.'ª' 'semana' 'de' y"
        formatField(d, b, 'w', 1);
        b.append(".ª semana de ");
        formatField(d, b, 'y', 1);
        break;
      }
      default: {
        return false;
      }
    }
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy