Skip to content

Commit 311e93a

Browse files
committed
decode utf8 escape
1 parent 6b8da95 commit 311e93a

File tree

1 file changed

+9
-0
lines changed
  • R#/Runtime/Internal/internalInvokes/string

1 file changed

+9
-0
lines changed

R#/Runtime/Internal/internalInvokes/string/stringr.vb

+9
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,15 @@ Namespace Runtime.Internal.Invokes
14831483
End If
14841484
End Function
14851485

1486+
<ExportAPI("utf8_decode")>
1487+
<RApiReturn(TypeCodes.string)>
1488+
Public Function utf8_decode(<RRawVectorArgument> x As Object, Optional env As Environment = Nothing) As Object
1489+
Return env.EvaluateFramework(Of String, String)(x,
1490+
eval:=Function(str)
1491+
Return CString.Decode(str)
1492+
End Function)
1493+
End Function
1494+
14861495
End Module
14871496

14881497
Public Class TextGrepLambda

0 commit comments

Comments
 (0)