Glob.AaGTok.piece: def of bend-osdev-apparmor@0.1.0.0 Import: import bend-osdev-apparmor@0.1.0.0/glob.bend as Glob Lines 240-252 of bend-osdev-apparmor@0.1.0.0/glob.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&start_line=240&end_line=252 import Base # the piece p matches the token def AaGTok.piece(tok: AaGTok, +p: List<&2, U32>) -> Bool: match tok: case AaGChar{c}: AaGPiece.one(U32.is_eq(AaGPiece.first(p), c), p) case AaGAny{}: AaGPiece.one(U32.is_ne(AaGPiece.first(p), 47), p) case AaGClass{neg, rs}: AaGPiece.one(AaGClass.has(neg, rs, AaGPiece.first(p)), p) case AaGStar{}: AaGPiece.no_slash(p) case AaGStar2{}: True{} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_ne https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&name=AaGClass.has https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&name=AaGPiece.first https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&name=AaGPiece.no_slash https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&name=AaGPiece.one https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&name=AaGTok