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

com.squarespace.cldr.dates._CalendarFormatter_ne 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 "ne"
 * See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
 */
public class _CalendarFormatter_ne extends CalendarFormatterBase {
  public _CalendarFormatter_ne() {
    this.locale = new CLDRLocale("ne", "", "", "");
    this.firstDay = 1;
    this.minDays = 1;
    this.eras = new FieldVariants(
          new String[] {"ईसा पूर्व", "सन्"}, 
          new String[] {"ईसा पूर्व", "सन्"}, 
          new String[] {}, 
          new String[] {"ईसा पूर्व", "सन्"});
    this.quartersFormat = new FieldVariants(
          new String[] {"पहिलो सत्र", "दोस्रो सत्र", "तेस्रो सत्र", "चौथो सत्र"}, 
          new String[] {"१", "२", "३", "४"}, 
          new String[] {}, 
          new String[] {"पहिलो सत्र", "दोस्रो सत्र", "तेस्रो सत्र", "चौथो सत्र"});
    this.quartersStandalone = new FieldVariants(
          new String[] {"पहिलो सत्र", "दोस्रो सत्र", "तेस्रो सत्र", "चौथो सत्र"}, 
          new String[] {"१", "२", "३", "४"}, 
          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: {
        // "y-MM-dd"
        formatField(d, b, 'y', 1);
        b.append("-");
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'd', 2);
        break;
      }
      case MEDIUM: {
        // "y MMM d"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case LONG: {
        // "y MMMM d"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case FULL: {
        // "y MMMM d, EEEE"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(", ");
        formatField(d, b, 'E', 4);
        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} {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 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: "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: "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: "MM-dd"
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'd', 2);
        break;
      }
      case "MEd": {
        // Pattern: "MM-dd, E"
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'd', 2);
        b.append(", ");
        formatField(d, b, 'E', 1);
        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: "MMMM d"
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case "MMMMW-count-one": {
        // Pattern: "'week' W 'of' MMM"
        b.append("week ");
        formatField(d, b, 'W', 1);
        b.append(" of ");
        formatField(d, b, 'M', 3);
        break;
      }
      case "MMMMW-count-other": {
        // Pattern: "'week' W 'of' MMM"
        b.append("week ");
        formatField(d, b, 'W', 1);
        b.append(" of ");
        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: "y-MM"
        formatField(d, b, 'y', 1);
        b.append("-");
        formatField(d, b, 'M', 2);
        break;
      }
      case "yMd": {
        // Pattern: "y-MM-dd"
        formatField(d, b, 'y', 1);
        b.append("-");
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'd', 2);
        break;
      }
      case "yMEd": {
        // Pattern: "y-MM-dd, E"
        formatField(d, b, 'y', 1);
        b.append("-");
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'd', 2);
        b.append(", ");
        formatField(d, b, 'E', 1);
        break;
      }
      case "yMMM": {
        // Pattern: "y MMM"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        break;
      }
      case "yMMMd": {
        // Pattern: "y MMM d"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case "yMMMEd": {
        // Pattern: "y MMM d, E"
        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 "yMMMM": {
        // Pattern: "y MMMM"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 4);
        break;
      }
      case "yQQQ": {
        // Pattern: "y QQQ"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'Q', 3);
        break;
      }
      case "yQQQQ": {
        // Pattern: "y QQQQ"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'Q', 4);
        break;
      }
      case "yw-count-one": {
        // Pattern: "'week' w 'of' y"
        b.append("week ");
        formatField(d, b, 'w', 1);
        b.append(" of ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yw-count-other": {
        // Pattern: "'week' w 'of' y"
        b.append("week ");
        formatField(d, b, 'w', 1);
        b.append(" of ");
        formatField(d, b, 'y', 1);
        break;
      }
      default: {
        return false;
      }
    }
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy