1 7 8 package com.ibm.icu.lang; 9 10 import com.ibm.icu.lang.UCharacterEnums.ECharacterDirection; 11 12 21 22 public final class UCharacterDirection implements ECharacterDirection { 23 24 29 private UCharacterDirection() 30 { 31 } 32 34 40 public static String toString(int dir) { 41 switch(dir) 42 { 43 case LEFT_TO_RIGHT : 44 return "Left-to-Right"; 45 case RIGHT_TO_LEFT : 46 return "Right-to-Left"; 47 case EUROPEAN_NUMBER : 48 return "European Number"; 49 case EUROPEAN_NUMBER_SEPARATOR : 50 return "European Number Separator"; 51 case EUROPEAN_NUMBER_TERMINATOR : 52 return "European Number Terminator"; 53 case ARABIC_NUMBER : 54 return "Arabic Number"; 55 case COMMON_NUMBER_SEPARATOR : 56 return "Common Number Separator"; 57 case BLOCK_SEPARATOR : 58 return "Paragraph Separator"; 59 case SEGMENT_SEPARATOR : 60 return "Segment Separator"; 61 case WHITE_SPACE_NEUTRAL : 62 return "Whitespace"; 63 case OTHER_NEUTRAL : 64 return "Other Neutrals"; 65 case LEFT_TO_RIGHT_EMBEDDING : 66 return "Left-to-Right Embedding"; 67 case LEFT_TO_RIGHT_OVERRIDE : 68 return "Left-to-Right Override"; 69 case RIGHT_TO_LEFT_ARABIC : 70 return "Right-to-Left Arabic"; 71 case RIGHT_TO_LEFT_EMBEDDING : 72 return "Right-to-Left Embedding"; 73 case RIGHT_TO_LEFT_OVERRIDE : 74 return "Right-to-Left Override"; 75 case POP_DIRECTIONAL_FORMAT : 76 return "Pop Directional Format"; 77 case DIR_NON_SPACING_MARK : 78 return "Non-Spacing Mark"; 79 case BOUNDARY_NEUTRAL : 80 return "Boundary Neutral"; 81 } 82 return "Unassigned"; 83 } 84 } 85 | Popular Tags |