source: trunk/gcc/libjava/testsuite/libjava.compile/T20020529.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 522 bytes
Line 
1public class T20020529
2{
3 public void checkXMLLangAttributeValue(String lang)
4 {
5 int offset = -1;
6 if (lang.length() >= 2) {
7 char ch0 = lang.charAt(0);
8 }
9 if (offset > 0) {
10 char ch = lang.charAt(offset++);
11 if (ch != '-') {
12 offset = -1;
13 } else {
14 while (true)
15 {
16 if (ch == '-')
17 ch = lang.charAt(offset++);
18 ch = lang.charAt(offset++);
19 }
20 }
21 }
22 }
23}
Note: See TracBrowser for help on using the repository browser.