//internal UnitOfMeasure( LocaleData locale, string name ) { // WellKnownUnit unit; // if ( XUtil.TryParseUnit( name, out unit ) ) { // Unit = unit; // Name = unit.ToCode(); // } else { // Name = name; // } //} //internal UnitSlot Load( FormatSize size, JObject root ) { // int idx = GetIndex( size ); // if ( idx < 0 ) { // return null; // } // UnitSlot slot = new UnitSlot( this, size ); // _sizes[ idx ] = slot; // slot.Load( root ); // return slot; //} internal UnitSlot Load(FormatLength size, LdmlTypeUnitNode root) { int idx = GetIndex(size); if (idx < 0) { return(null); } UnitSlot slot = new UnitSlot(this, size); _sizes[idx] = slot; slot.Load(root); return(slot); }