12013-1-2

boolean isURICharacter (char p_char) { return (p_char <= '~' && (fgLookupTable[p_char] & MASK_URI_CHARACTER) != 0); } /** * Determine whether a char is a scheme character. * * @return true if the char is a scheme character, false otherwise */ private static boolean isSchemeCharacter (char p_char) { return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_SCHEME_CHARACTER) != 0); } /** * Determine whether a char is a userinfo character. * * @return true if the char is a userinfo character, false otherwise */ private static boolean isUserinfoCharacter (char p_char) { return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_USERINFO_CHARACTER) != 0); } /** * Determine whether a char is a path character. * * @return true if the char is a path character, false otherwise */ private static boolean isPathCharacter (char p_char) { return (p_char <= '~' && (fgLookupTable[p_char] & MASK_PATH_CHARACTER) != 0); }
boolean isAlphanum(char p_char) { return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_ALPHA_NUMERIC) != 0); } /** * Determine whether a char is a URI character (reserved or * unreserved, not including '%' for escaped octets). * * @return true if the char is a URI character, false otherwise */ private static boolean isURICharacter (char p_char) { return (p_char <= '~' && (fgLookupTable[p_char] & MASK_URI_CHARACTER) != 0); } /** * Determine whether a char is a scheme character. * * @return true if the char is a scheme character, false otherwise */ private static boolean isSchemeCharacter (char p_char) { return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_SCHEME_CHARACTER) != 0); } /** * Determine whether a char is a userinfo character. * * @return true if the char is a userinfo character, false otherwise */ private static boolean isUserinfoCharacter (char p_char) { return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_USERINFO_CHARACTER) != 0); }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    boolean isAlphanum(char p_char) {↵

2

         return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_ALPHA_NUMERIC) != 0);↵

3

      }↵

4

     /**↵

5

      * Determine whether a char is a URI character (reserved or ↵

6

      * unreserved, not including '%' for escaped octets).↵

7

      *↵

8

      * @return true if the char is a URI character, false otherwise↵

9

      */↵

1

    boolean isURICharacter (char p_char) {↵

10

      private static boolean isURICharacter (char p_char) {↵

2

          return (p_char <= '~' && (fgLookupTable[p_char] & MASK_URI_CHARACTER) != 0);↵

11

          return (p_char <= '~' && (fgLookupTable[p_char] & MASK_URI_CHARACTER) != 0);↵

3

      }↵

12

      }↵

4

     /**↵

13

     /**↵

5

      * Determine whether a char is a scheme character.↵

14

      * Determine whether a char is a scheme character.↵

6

      *↵

15

      *↵

7

      * @return true if the char is a scheme character, false otherwise↵

16

      * @return true if the char is a scheme character, false otherwise↵

8

      */↵

17

      */↵

9

      private static boolean isSchemeCharacter (char p_char) {↵

18

      private static boolean isSchemeCharacter (char p_char) {↵

10

          return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_SCHEME_CHARACTER) != 0);↵

19

          return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_SCHEME_CHARACTER) != 0);↵

11

      }↵

20

      }↵

12

     /**↵

21

     /**↵

13

      * Determine whether a char is a userinfo character.↵

22

      * Determine whether a char is a userinfo character.↵

14

      *↵

23

      *↵

15

      * @return true if the char is a userinfo character, false otherwise↵

24

      * @return true if the char is a userinfo character, false otherwise↵

16

      */↵

25

      */↵

17

      private static boolean isUserinfoCharacter (char p_char) {↵

26

      private static boolean isUserinfoCharacter (char p_char) {↵

18

          return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_USERINFO_CHARACTER) != 0);↵

27

          return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_USERINFO_CHARACTER) != 0);↵

19

      }↵

28

      }

20

      ↵

21

     /**↵

22

      * Determine whether a char is a path character.↵

23

      * ↵

24

      * @return true if the char is a path character, false otherwise↵

25

      */↵

26

      private static boolean isPathCharacter (char p_char) {↵

27

          return (p_char <= '~' && (fgLookupTable[p_char] & MASK_PATH_CHARACTER) != 0);↵

28

      }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0