MCPcopy Create free account
hub / github.com/google/re2j / programSize

Method programSize

java/com/google/re2j/Matcher.java:226–228  ·  view source on GitHub ↗

Returns the program size of this pattern. Similar to the C++ implementation, the program size is a very approximate measure of a regexp's "cost". Larger numbers are more expensive than smaller numbers. @return the program size of this pattern

()

Source from the content-addressed store, hash-verified

224 * @return the program size of this pattern
225 */
226 public int programSize() {
227 return numberOfInstructions;
228 }
229
230 /**
231 * Returns the most recent match.

Callers 2

testProgramSizeMethod · 0.95
testProgramSizeMethod · 0.45

Calls

no outgoing calls

Tested by 2

testProgramSizeMethod · 0.76
testProgramSizeMethod · 0.36