RosettaCodeData/Task/String-length/Visual-Basic-.NET/string-length-1.vb
2023-07-01 13:44:08 -04:00

5 lines
164 B
VB.net

Module ByteLength
Function GetByteLength(s As String, encoding As Text.Encoding) As Integer
Return encoding.GetByteCount(s)
End Function
End Module