12ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller/* GENERATED SOURCE. DO NOT MODIFY. */
2f86f25d102340da66b9c7cb6b2d5ecdc0de43ecfFredrik Roubert// © 2016 and later: Unicode, Inc. and others.
3f86f25d102340da66b9c7cb6b2d5ecdc0de43ecfFredrik Roubert// License & terms of use: http://www.unicode.org/copyright.html#License
42ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller/**
52ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller*******************************************************************************
62ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller* Copyright (C) 1996-2013, International Business Machines Corporation and
72ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller* others. All Rights Reserved.
82ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller*******************************************************************************
92ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller*/
102ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller
112ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fullerpackage android.icu.lang;
122ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller
132ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fullerimport android.icu.lang.UCharacterEnums.ECharacterDirection;
142ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller
152ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller/**
162ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller * Enumerated Unicode character linguistic direction constants.
172ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller * Used as return results from <a href=UCharacter.html>UCharacter</a>
182ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller * <p>
192ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller * This class is not subclassable
202ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller * </p>
212ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller * @author Syn Wee Quek
222ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller */
232ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller
242ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fullerpublic final class UCharacterDirection implements ECharacterDirection {
252ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller
262ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    // private constructor =========================================
272ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    ///CLOVER:OFF
282ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    /**
292ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller     * Private constructor to prevent initialisation
302ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller     */
312ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    private UCharacterDirection()
322ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    {
332ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    }
342ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    ///CLOVER:ON
352ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller
362ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    /**
372ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller     * Gets the name of the argument direction
382ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller     * @param dir direction type to retrieve name
392ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller     * @return directional name
402ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller     */
412ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    public static String toString(int dir) {
422ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller        switch(dir)
432ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            {
442ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case LEFT_TO_RIGHT :
452ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Left-to-Right";
462ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case RIGHT_TO_LEFT :
472ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Right-to-Left";
482ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case EUROPEAN_NUMBER :
492ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "European Number";
502ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case EUROPEAN_NUMBER_SEPARATOR :
512ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "European Number Separator";
522ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case EUROPEAN_NUMBER_TERMINATOR :
532ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "European Number Terminator";
542ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case ARABIC_NUMBER :
552ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Arabic Number";
562ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case COMMON_NUMBER_SEPARATOR :
572ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Common Number Separator";
582ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case BLOCK_SEPARATOR :
592ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Paragraph Separator";
602ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case SEGMENT_SEPARATOR :
612ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Segment Separator";
622ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case WHITE_SPACE_NEUTRAL :
632ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Whitespace";
642ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case OTHER_NEUTRAL :
652ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Other Neutrals";
662ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case LEFT_TO_RIGHT_EMBEDDING :
672ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Left-to-Right Embedding";
682ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case LEFT_TO_RIGHT_OVERRIDE :
692ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Left-to-Right Override";
702ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case RIGHT_TO_LEFT_ARABIC :
712ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Right-to-Left Arabic";
722ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case RIGHT_TO_LEFT_EMBEDDING :
732ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Right-to-Left Embedding";
742ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case RIGHT_TO_LEFT_OVERRIDE :
752ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Right-to-Left Override";
762ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case POP_DIRECTIONAL_FORMAT :
772ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Pop Directional Format";
782ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case DIR_NON_SPACING_MARK :
792ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Non-Spacing Mark";
802ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case BOUNDARY_NEUTRAL :
812ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Boundary Neutral";
822ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case FIRST_STRONG_ISOLATE:
832ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "First Strong Isolate";
842ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case LEFT_TO_RIGHT_ISOLATE:
852ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Left-to-Right Isolate";
862ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case RIGHT_TO_LEFT_ISOLATE:
872ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Right-to-Left Isolate";
882ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            case POP_DIRECTIONAL_ISOLATE:
892ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller                return "Pop Directional Isolate";
902ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller            }
912ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller        return "Unassigned";
922ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller    }
932ae130017183d2f66d55bf0ca51f8da3294644fdNeil Fuller}
94