Package jflex.unicode

Examples of jflex.unicode.UnicodeProperties


    }
  }

  public void testCaselessMatches_4_0() {
    try {
      UnicodeProperties properties = new UnicodeProperties("4.0");
      checkCaseless_i_matches(properties);
    } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) {
      assertTrue("Unsupported version '4.0' should be supported: " + e, false);
    }
  }
View Full Code Here


    }
  }

  public void testCaselessMatches_4_1() {
    try {
      UnicodeProperties properties = new UnicodeProperties("4.1");
      checkCaseless_i_matches(properties);
    } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) {
      assertTrue("Unsupported version '4.1' should be supported: " + e, false);
    }
  }
View Full Code Here

    }
  }

  public void testCaselessMatches_5_0() {
    try {
      UnicodeProperties properties = new UnicodeProperties("5.0");
      checkCaseless_i_matches(properties);
    } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) {
      assertTrue("Unsupported version '5.0' should be supported: " + e, false);
    }
  }
View Full Code Here

    }
  }

  public void testSingleLetterProperties_5_0() {
    try {
      UnicodeProperties properties = new UnicodeProperties("5.0");
      IntCharSet set_1 = properties.getIntCharSet("S");
      assertNotNull("Null interval set for \\p{S}", set_1);
      assertTrue("Empty interval set for \\p{S}", set_1.containsElements());
      IntCharSet set_2 = properties.getIntCharSet("Symbol");
      assertNotNull("Null interval set for \\p{Symbol}", set_2);
      assertTrue("Empty interval set for \\p{Symbol}", set_2.containsElements());

      assertTrue("\\p{S} is not the same as \\p{Symbol}", set_1.equals(set_2));
View Full Code Here

    }
  }

  public void testCaselessMatches_5_1() {
    try {
      UnicodeProperties properties = new UnicodeProperties("5.1");
      checkCaseless_i_matches(properties);
    } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) {
      assertTrue("Unsupported version '5.1' should be supported: " + e, false);
    }
  }
View Full Code Here

      assertTrue("Unsupported version '5.1' should be supported: " + e, false);
    }
  }
  public void testSingleLetterProperties_5_1() {
    try {
      UnicodeProperties properties = new UnicodeProperties("5.1");
      IntCharSet set_1 = properties.getIntCharSet("S");
      assertNotNull("Null interval set for \\p{S}", set_1);
      assertTrue("Empty interval set for \\p{S}", set_1.containsElements());
      IntCharSet set_2 = properties.getIntCharSet("Symbol");
      assertNotNull("Null interval set for \\p{Symbol}", set_2);
      assertTrue("Empty interval set for \\p{Symbol}", set_2.containsElements());

      assertTrue("\\p{S} is not the same as \\p{Symbol}", set_1.equals(set_2));
View Full Code Here

    }
  }

  public void testCaselessMatches_5_2() {
    try {
      UnicodeProperties properties = new UnicodeProperties("5.2");
      checkCaseless_i_matches(properties);
    } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) {
      assertTrue("Unsupported version '5.2' should be supported: " + e, false);
    }
  }
View Full Code Here

      assertTrue("Unsupported version '5.2' should be supported: " + e, false);
    }
  }
  public void testSingleLetterProperties_5_2() {
    try {
      UnicodeProperties properties = new UnicodeProperties("5.2");
      IntCharSet set_1 = properties.getIntCharSet("S");
      assertNotNull("Null interval set for \\p{S}", set_1);
      assertTrue("Empty interval set for \\p{S}", set_1.containsElements());
      IntCharSet set_2 = properties.getIntCharSet("Symbol");
      assertNotNull("Null interval set for \\p{Symbol}", set_2);
      assertTrue("Empty interval set for \\p{Symbol}", set_2.containsElements());

      assertTrue("\\p{S} is not the same as \\p{Symbol}", set_1.equals(set_2));
View Full Code Here

    }
  }

  public void testCaselessMatches_6_0() {
    try {
      UnicodeProperties properties = new UnicodeProperties("6.0");
      checkCaseless_i_matches(properties);
    } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) {
      assertTrue("Unsupported version '6.0' should be supported: " + e, false);
    }
  }
View Full Code Here

      assertTrue("Unsupported version '6.0' should be supported: " + e, false);
    }
  }
  public void testSingleLetterProperties_6_0() {
    try {
      UnicodeProperties properties = new UnicodeProperties("6.0");
      IntCharSet set_1 = properties.getIntCharSet("S");
      assertNotNull("Null interval set for \\p{S}", set_1);
      assertTrue("Empty interval set for \\p{S}", set_1.containsElements());
      IntCharSet set_2 = properties.getIntCharSet("Symbol");
      assertNotNull("Null interval set for \\p{Symbol}", set_2);
      assertTrue("Empty interval set for \\p{Symbol}", set_2.containsElements());

      assertTrue("\\p{S} is not the same as \\p{Symbol}", set_1.equals(set_2));
View Full Code Here

TOP

Related Classes of jflex.unicode.UnicodeProperties

Copyright © 2018 www.massapicom. 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.