MCPcopy Create free account
hub / github.com/KLayout/klayout / process

Method process

testdata/ruby/dbTextsTest.rb:72–75  ·  view source on GitHub ↗

Replaces the string by a number representing the string length

(text)

Source from the content-addressed store, hash-verified

70
71 # Replaces the string by a number representing the string length
72 def process(text)
73 s = text.string.size * 10
74 return [ RBA::Polygon::new(text.bbox.enlarged(s)) ]
75 end
76
77end
78

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
stringMethod · 0.45
enlargedMethod · 0.45
bboxMethod · 0.45

Tested by

no test coverage detected