ISBN13 check digit: Difference between revisions
m
→{{header|Vlang}}
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 2,848:
=={{header|Vlang}}==
{{trans|
<syntaxhighlight lang="vlang">
fn check_isbn13(isbn13 string) bool {
// remove any hyphens or spaces
isbn := isbn13.replace('-','').replace(' ','')
// check length == 13
le := isbn.len
|