Package org.nutz.lang.segment

Examples of org.nutz.lang.segment.Segment.keys()


    public void testNormal() {
        Segment seg = Segments.create("H${4}B");
        seg.set("4", "zzh");
        assertEquals("H${4}B", seg.getOrginalString());
        assertEquals("HzzhB", seg.toString());
        assertEquals(1, seg.keys().size());
        assertEquals(3, seg.values().size());
    }

    @Test
    public void testWrongPPname() {
View Full Code Here


                    // 将本地化字符串增加到当前语言
                    for (String key : p.keySet()) {
                        String str = p.get(key);
                        Segment seg = (new CharSegment()).valueOf(str);
                        if (seg.keys().isEmpty())
                            msgs.put(key, str);
                        else
                            msgs.put(key, seg);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.