Bitmap/Read a PPM file: Difference between revisions
→{{header|Go}}: compatibility fix. old (bad) code matched entire file with regexp.
(→{{header|Go}}: compatibility fix. old (bad) code matched entire file with regexp.) |
|||
Line 568:
b = NewBitmap(x, y)
b.Comments = rxComment.FindAllString(string(allCmts), -1)
b3 := all[len(bss[
var n1 int
for i := range b.px {
Line 591:
var rxHeader = regexp.MustCompile("^P6" + num + num + num +
"(" + cmts + "*" + ")" + ws
var rxComment = regexp.MustCompile(cmt)
|