vb6runtime 0.2.0

VB6 runtime library - value system, type conversions, and standard library implementations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
//! VB6 `StrReverse` Function
//!
//! The `StrReverse` function returns a string in which the character order of a specified string is reversed.
//!
//! ## Syntax
//! ```vb6
//! StrReverse(expression)
//! ```
//!
//! ## Parameters
//! - `expression`: Required. String expression whose characters are to be reversed. If `expression` is a zero-length string (""), a zero-length string is returned.
//!
//! ## Returns
//! Returns a `String` with the characters in reverse order.
//!
//! ## Remarks
//! The `StrReverse` function reverses the order of characters in a string:
//!
//! - **Character-by-character reversal**: Reverses individual characters, not words
//! - **Unicode support**: Works correctly with Unicode characters
//! - **Empty string handling**: Returns empty string if input is empty
//! - **Null handling**: Returns `Null` if `expression` is `Null`
//! - **Preserves spaces**: Spaces are treated like any other character and reversed
//! - **Case preserved**: Original case of characters is maintained
//! - **Single pass**: Efficient single-pass algorithm
//! - **VB6/VBA only**: Available in VB6 and VBA, not in `VBScript`
//!
//! ### Common Use Cases
//! - Reversing strings for display or analysis
//! - Palindrome checking (compare string with its reverse)
//! - Text transformations and puzzles
//! - Data obfuscation (simple, not secure)
//! - Mirror text effects
//! - String manipulation algorithms
//!
//! ### Comparison with Manual Reversal
//! `StrReverse` is more efficient than manually reversing with loops:
//! ```vb6
//! ' Using StrReverse (preferred)
//! reversed = StrReverse(original)
//!
//! ' Manual reversal (slower)
//! For i = Len(original) To 1 Step -1
//!     reversed = reversed & Mid$(original, i, 1)
//! Next i
//! ```
//!
//! ## Typical Uses
//! 1. **Palindrome Detection**: Check if a string reads the same forwards and backwards
//! 2. **Text Effects**: Create mirror or reversed text displays
//! 3. **String Analysis**: Analyze patterns in reversed strings
//! 4. **Data Transformation**: Transform data for specific algorithms
//! 5. **Puzzles and Games**: Implement word games and puzzles
//! 6. **File Processing**: Process files that store data in reverse order
//! 7. **Encoding**: Simple (non-cryptographic) string obfuscation
//! 8. **Testing**: Generate test data with predictable patterns
//!
//! ## Basic Examples
//!
//! ### Example 1: Basic String Reversal
//! ```vb6
//! Dim original As String
//! Dim reversed As String
//!
//! original = "Hello"
//! reversed = StrReverse(original)  ' "olleH"
//!
//! original = "VB6"
//! reversed = StrReverse(original)  ' "6BV"
//!
//! original = "12345"
//! reversed = StrReverse(original)  ' "54321"
//! ```
//!
//! ### Example 2: Palindrome Check
//! ```vb6
//! Function IsPalindrome(text As String) As Boolean
//!     Dim normalized As String
//!     
//!     ' Remove spaces and convert to lowercase for comparison
//!     normalized = Replace(LCase$(text), " ", "")
//!     
//!     ' Compare with reversed version
//!     IsPalindrome = (normalized = StrReverse(normalized))
//! End Function
//!
//! ' Examples:
//! ' IsPalindrome("racecar") = True
//! ' IsPalindrome("A man a plan a canal Panama") = True (after normalization)
//! ' IsPalindrome("hello") = False
//! ```
//!
//! ### Example 3: Reverse Words in Sentence
//! ```vb6
//! Function ReverseWords(sentence As String) As String
//!     Dim words() As String
//!     Dim i As Integer
//!     Dim result As String
//!     
//!     words = Split(sentence, " ")
//!     
//!     result = ""
//!     For i = UBound(words) To LBound(words) Step -1
//!         If i < UBound(words) Then result = result & " "
//!         result = result & words(i)
//!     Next i
//!     
//!     ReverseWords = result
//! End Function
//!
//! ' Example: "Hello World" becomes "World Hello"
//! ```
//!
//! ### Example 4: Simple Obfuscation
//! ```vb6
//! Function ObfuscateString(text As String) As String
//!     ' Simple, non-secure obfuscation
//!     ObfuscateString = StrReverse(text)
//! End Function
//!
//! Function DeobfuscateString(text As String) As String
//!     ' Reverse the obfuscation
//!     DeobfuscateString = StrReverse(text)
//! End Function
//! ```
//!
//! ## Common Patterns
//!
//! ### Pattern 1: Check Palindrome (Case-Insensitive)
//! ```vb6
//! Function IsPalindromeIgnoreCase(text As String) As Boolean
//!     Dim lower As String
//!     lower = LCase$(text)
//!     IsPalindromeIgnoreCase = (lower = StrReverse(lower))
//! End Function
//! ```
//!
//! ### Pattern 2: Reverse Each Word
//! ```vb6
//! Function ReverseEachWord(sentence As String) As String
//!     Dim words() As String
//!     Dim i As Integer
//!     
//!     words = Split(sentence, " ")
//!     For i = LBound(words) To UBound(words)
//!         words(i) = StrReverse(words(i))
//!     Next i
//!     
//!     ReverseEachWord = Join(words, " ")
//! End Function
//! ```
//!
//! ### Pattern 3: Get Last N Characters Efficiently
//! ```vb6
//! Function GetLastNChars(text As String, n As Integer) As String
//!     Dim reversed As String
//!     reversed = StrReverse(text)
//!     GetLastNChars = StrReverse(Left$(reversed, n))
//! End Function
//! ```
//!
//! ### Pattern 4: Check If Strings Are Reverses
//! ```vb6
//! Function AreReverses(str1 As String, str2 As String) As Boolean
//!     AreReverses = (str1 = StrReverse(str2))
//! End Function
//! ```
//!
//! ### Pattern 5: Reverse File Extension
//! ```vb6
//! Function ReverseExtension(filename As String) As String
//!     Dim dotPos As Integer
//!     Dim name As String
//!     Dim ext As String
//!     
//!     dotPos = InStrRev(filename, ".")
//!     If dotPos > 0 Then
//!         name = Left$(filename, dotPos - 1)
//!         ext = Mid$(filename, dotPos + 1)
//!         ReverseExtension = name & "." & StrReverse(ext)
//!     Else
//!         ReverseExtension = filename
//!     End If
//! End Function
//! ```
//!
//! ### Pattern 6: Mirror Text Display
//! ```vb6
//! Function CreateMirrorText(text As String) As String
//!     CreateMirrorText = text & " | " & StrReverse(text)
//! End Function
//! ```
//!
//! ### Pattern 7: Reverse and Uppercase
//! ```vb6
//! Function ReverseAndUpper(text As String) As String
//!     ReverseAndUpper = UCase$(StrReverse(text))
//! End Function
//! ```
//!
//! ### Pattern 8: Find Reverse Match in Array
//! ```vb6
//! Function FindReverseMatch(arr() As String, searchValue As String) As Integer
//!     Dim i As Integer
//!     Dim reversed As String
//!     
//!     reversed = StrReverse(searchValue)
//!     
//!     For i = LBound(arr) To UBound(arr)
//!         If arr(i) = reversed Then
//!             FindReverseMatch = i
//!             Exit Function
//!         End If
//!     Next i
//!     
//!     FindReverseMatch = -1
//! End Function
//! ```
//!
//! ### Pattern 9: Reverse Between Delimiters
//! ```vb6
//! Function ReverseBetween(text As String, startDelim As String, endDelim As String) As String
//!     Dim startPos As Integer
//!     Dim endPos As Integer
//!     Dim middle As String
//!     
//!     startPos = InStr(text, startDelim)
//!     endPos = InStr(startPos + Len(startDelim), text, endDelim)
//!     
//!     If startPos > 0 And endPos > startPos Then
//!         middle = Mid$(text, startPos + Len(startDelim), endPos - startPos - Len(startDelim))
//!         ReverseBetween = Left$(text, startPos + Len(startDelim) - 1) & _
//!                         StrReverse(middle) & _
//!                         Mid$(text, endPos)
//!     Else
//!         ReverseBetween = text
//!     End If
//! End Function
//! ```
//!
//! ### Pattern 10: Alternate Characters Reversed
//! ```vb6
//! Function AlternateReverse(text As String) As String
//!     Dim i As Integer
//!     Dim result As String
//!     Dim reversed As String
//!     
//!     reversed = StrReverse(text)
//!     result = ""
//!     
//!     For i = 1 To Len(text)
//!         If i Mod 2 = 1 Then
//!             result = result & Mid$(text, i, 1)
//!         Else
//!             result = result & Mid$(reversed, i, 1)
//!         End If
//!     Next i
//!     
//!     AlternateReverse = result
//! End Function
//! ```
//!
//! ## Advanced Usage
//!
//! ### Example 1: Palindrome Checker Class
//! ```vb6
//! ' Class: PalindromeChecker
//! ' Checks various types of palindromes
//! Option Explicit
//!
//! Private m_IgnoreCase As Boolean
//! Private m_IgnoreSpaces As Boolean
//! Private m_IgnorePunctuation As Boolean
//!
//! Public Sub Initialize(Optional ignoreCase As Boolean = True, _
//!                       Optional ignoreSpaces As Boolean = True, _
//!                       Optional ignorePunctuation As Boolean = False)
//!     m_IgnoreCase = ignoreCase
//!     m_IgnoreSpaces = ignoreSpaces
//!     m_IgnorePunctuation = ignorePunctuation
//! End Sub
//!
//! Public Function IsPalindrome(text As String) As Boolean
//!     Dim normalized As String
//!     normalized = NormalizeText(text)
//!     IsPalindrome = (normalized = StrReverse(normalized))
//! End Function
//!
//! Public Function GetLongestPalindromeSubstring(text As String) As String
//!     Dim i As Integer
//!     Dim j As Integer
//!     Dim substring As String
//!     Dim longest As String
//!     
//!     longest = ""
//!     
//!     For i = 1 To Len(text)
//!         For j = i To Len(text)
//!             substring = Mid$(text, i, j - i + 1)
//!             If IsPalindrome(substring) And Len(substring) > Len(longest) Then
//!                 longest = substring
//!             End If
//!         Next j
//!     Next i
//!     
//!     GetLongestPalindromeSubstring = longest
//! End Function
//!
//! Private Function NormalizeText(text As String) As String
//!     Dim result As String
//!     result = text
//!     
//!     If m_IgnoreCase Then
//!         result = LCase$(result)
//!     End If
//!     
//!     If m_IgnoreSpaces Then
//!         result = Replace(result, " ", "")
//!     End If
//!     
//!     If m_IgnorePunctuation Then
//!         result = RemovePunctuation(result)
//!     End If
//!     
//!     NormalizeText = result
//! End Function
//!
//! Private Function RemovePunctuation(text As String) As String
//!     Dim i As Integer
//!     Dim char As String
//!     Dim result As String
//!     
//!     result = ""
//!     For i = 1 To Len(text)
//!         char = Mid$(text, i, 1)
//!         If (char >= "A" And char <= "Z") Or (char >= "a" And char <= "z") Or _
//!            (char >= "0" And char <= "9") Then
//!             result = result & char
//!         End If
//!     Next i
//!     
//!     RemovePunctuation = result
//! End Function
//! ```
//!
//! ### Example 2: String Reversal Utilities
//! ```vb6
//! ' Module: StringReversalUtils
//! ' Utilities for reversing strings in various ways
//! Option Explicit
//!
//! Public Function ReverseString(text As String) As String
//!     ReverseString = StrReverse(text)
//! End Function
//!
//! Public Function ReverseWords(sentence As String) As String
//!     Dim words() As String
//!     Dim i As Integer
//!     Dim result As String
//!     
//!     words = Split(sentence, " ")
//!     result = ""
//!     
//!     For i = UBound(words) To LBound(words) Step -1
//!         If Len(result) > 0 Then result = result & " "
//!         result = result & words(i)
//!     Next i
//!     
//!     ReverseWords = result
//! End Function
//!
//! Public Function ReverseEachWord(sentence As String) As String
//!     Dim words() As String
//!     Dim i As Integer
//!     
//!     words = Split(sentence, " ")
//!     For i = LBound(words) To UBound(words)
//!         words(i) = StrReverse(words(i))
//!     Next i
//!     
//!     ReverseEachWord = Join(words, " ")
//! End Function
//!
//! Public Function ReverseLines(text As String) As String
//!     Dim lines() As String
//!     Dim i As Integer
//!     Dim result As String
//!     
//!     lines = Split(text, vbCrLf)
//!     result = ""
//!     
//!     For i = UBound(lines) To LBound(lines) Step -1
//!         If Len(result) > 0 Then result = result & vbCrLf
//!         result = result & lines(i)
//!     Next i
//!     
//!     ReverseLines = result
//! End Function
//!
//! Public Function ReverseArray(arr() As String) As String()
//!     Dim result() As String
//!     Dim i As Integer
//!     Dim j As Integer
//!     
//!     ReDim result(LBound(arr) To UBound(arr))
//!     j = LBound(arr)
//!     
//!     For i = UBound(arr) To LBound(arr) Step -1
//!         result(j) = arr(i)
//!         j = j + 1
//!     Next i
//!     
//!     ReverseArray = result
//! End Function
//! ```
//!
//! ### Example 3: Text Transformer Class
//! ```vb6
//! ' Class: TextTransformer
//! ' Performs various text transformations including reversal
//! Option Explicit
//!
//! Public Function Transform(text As String, transformType As String) As String
//!     Select Case UCase$(transformType)
//!         Case "REVERSE"
//!             Transform = StrReverse(text)
//!         Case "REVERSE_WORDS"
//!             Transform = ReverseWords(text)
//!         Case "REVERSE_EACH_WORD"
//!             Transform = ReverseEachWord(text)
//!         Case "MIRROR"
//!             Transform = text & " " & StrReverse(text)
//!         Case "PALINDROME"
//!             Transform = text & StrReverse(text)
//!         Case Else
//!             Transform = text
//!     End Select
//! End Function
//!
//! Private Function ReverseWords(sentence As String) As String
//!     Dim words() As String
//!     Dim i As Integer
//!     Dim result As String
//!     
//!     words = Split(sentence, " ")
//!     result = ""
//!     
//!     For i = UBound(words) To LBound(words) Step -1
//!         If Len(result) > 0 Then result = result & " "
//!         result = result & words(i)
//!     Next i
//!     
//!     ReverseWords = result
//! End Function
//!
//! Private Function ReverseEachWord(sentence As String) As String
//!     Dim words() As String
//!     Dim i As Integer
//!     
//!     words = Split(sentence, " ")
//!     For i = LBound(words) To UBound(words)
//!         words(i) = StrReverse(words(i))
//!     Next i
//!     
//!     ReverseEachWord = Join(words, " ")
//! End Function
//!
//! Public Function CreatePalindrome(text As String) As String
//!     CreatePalindrome = text & StrReverse(text)
//! End Function
//!
//! Public Function IsPalindrome(text As String) As Boolean
//!     IsPalindrome = (text = StrReverse(text))
//! End Function
//! ```
//!
//! ### Example 4: String Analyzer Module
//! ```vb6
//! ' Module: StringAnalyzer
//! ' Analyzes strings using reversal techniques
//! Option Explicit
//!
//! Public Function ContainsPalindrome(text As String, minLength As Integer) As Boolean
//!     Dim i As Integer
//!     Dim j As Integer
//!     Dim substring As String
//!     
//!     For i = 1 To Len(text) - minLength + 1
//!         For j = minLength To Len(text) - i + 1
//!             substring = Mid$(text, i, j)
//!             If substring = StrReverse(substring) Then
//!                 ContainsPalindrome = True
//!                 Exit Function
//!             End If
//!         Next j
//!     Next i
//!     
//!     ContainsPalindrome = False
//! End Function
//!
//! Public Function FindAllPalindromes(text As String, minLength As Integer) As Collection
//!     Dim palindromes As New Collection
//!     Dim i As Integer
//!     Dim j As Integer
//!     Dim substring As String
//!     
//!     For i = 1 To Len(text)
//!         For j = minLength To Len(text) - i + 1
//!             substring = Mid$(text, i, j)
//!             If substring = StrReverse(substring) Then
//!                 On Error Resume Next
//!                 palindromes.Add substring, substring
//!                 On Error GoTo 0
//!             End If
//!         Next j
//!     Next i
//!     
//!     Set FindAllPalindromes = palindromes
//! End Function
//!
//! Public Function GetSymmetryScore(text As String) As Double
//!     ' Calculate how symmetric a string is (0-100%)
//!     Dim matches As Integer
//!     Dim i As Integer
//!     Dim len As Integer
//!     
//!     len = Len(text)
//!     If len = 0 Then
//!         GetSymmetryScore = 0
//!         Exit Function
//!     End If
//!     
//!     matches = 0
//!     For i = 1 To len \ 2
//!         If Mid$(text, i, 1) = Mid$(text, len - i + 1, 1) Then
//!             matches = matches + 1
//!         End If
//!     Next i
//!     
//!     GetSymmetryScore = (matches / (len \ 2)) * 100
//! End Function
//!
//! Public Function IsAnagram(str1 As String, str2 As String) As Boolean
//!     ' Not directly using StrReverse, but useful utility
//!     Dim sorted1 As String
//!     Dim sorted2 As String
//!     
//!     sorted1 = SortString(LCase$(str1))
//!     sorted2 = SortString(LCase$(str2))
//!     
//!     IsAnagram = (sorted1 = sorted2)
//! End Function
//!
//! Private Function SortString(text As String) As String
//!     ' Simple bubble sort for demonstration
//!     Dim chars() As String
//!     Dim i As Integer
//!     Dim j As Integer
//!     Dim temp As String
//!     
//!     ReDim chars(1 To Len(text))
//!     For i = 1 To Len(text)
//!         chars(i) = Mid$(text, i, 1)
//!     Next i
//!     
//!     For i = 1 To UBound(chars) - 1
//!         For j = i + 1 To UBound(chars)
//!             If chars(i) > chars(j) Then
//!                 temp = chars(i)
//!                 chars(i) = chars(j)
//!                 chars(j) = temp
//!             End If
//!         Next j
//!     Next i
//!     
//!     SortString = Join(chars, "")
//! End Function
//! ```
//!
//! ## Error Handling
//! The `StrReverse` function typically does not raise errors under normal circumstances:
//!
//! - Returns empty string if input is empty string
//! - Returns `Null` if input is `Null` (not an error)
//! - **Error 13 (Type mismatch)**: If `expression` cannot be converted to a string
//!
//! ## Performance Notes
//! - Very fast and efficient (optimized native function)
//! - Much faster than manual character-by-character reversal in VB6
//! - Performance is O(n) where n is string length
//! - No significant overhead for typical string lengths
//! - For very large strings (megabytes), consider memory constraints
//!
//! ## Best Practices
//! 1. **Use `StrReverse`** instead of manual loops for reversing strings (faster and cleaner)
//! 2. **Handle Null values** explicitly when working with Variant types
//! 3. **Normalize before palindrome checks** (remove spaces, convert case)
//! 4. **Don't use for security** - `StrReverse` is not encryption, only obfuscation
//! 5. **Cache reversed strings** if used multiple times in comparisons
//! 6. **Combine with other functions** like `LCase$`, `Trim$` for text processing
//! 7. **Test edge cases** like empty strings and single-character strings
//! 8. **Document intent** when using `StrReverse` in non-obvious ways
//! 9. **Consider alternatives** for word-level reversal (Split/Join approach)
//! 10. **Use for validation** like palindrome checking or symmetry analysis
//!
//! ## Comparison Table
//!
//! | Approach | Code | Speed | Clarity |
//! |----------|------|-------|---------|
//! | `StrReverse` | `StrReverse(s)` | Fast | Excellent |
//! | Manual loop | `For i = Len(s) To 1 Step -1...` | Slow | Poor |
//! | Recursion | `ReverseRecursive(s)` | Very slow | Poor |
//!
//! ## Platform Notes
//! - Available in VB6 and VBA
//! - **Not available in `VBScript`** (must implement manually)
//! - Works correctly with Unicode characters
//! - Behavior consistent across VB6 and VBA
//! - No locale-specific behavior
//!
//! ## Limitations
//! - Cannot reverse only part of a string (use `Mid$` to extract first)
//! - Cannot reverse words rather than characters (use Split/Join)
//! - Not available in `VBScript`
//! - Returns `Null` for `Null` input (may be unexpected)
//! - No option to reverse specific character ranges
//! - Cannot specify custom reversal rules

use crate::{error::VBResult, value::VBString};

/// Returns the string with the order of its characters reversed.
///
/// Spaces and other characters are reversed like any other character; the case
/// of each character is preserved.
pub fn strreverse(input: &VBString) -> VBResult<VBString> {
    Ok(VBString::from(
        input.as_str().chars().rev().collect::<String>(),
    ))
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn reverses_characters() {
        assert_eq!(
            strreverse(&VBString::from("Hello")).unwrap(),
            VBString::from("olleH")
        );
        assert_eq!(
            strreverse(&VBString::from("Hello World")).unwrap(),
            VBString::from("dlroW olleH")
        );
    }

    #[test]
    fn preserves_case_and_spaces() {
        assert_eq!(
            strreverse(&VBString::from("AbC 123")).unwrap(),
            VBString::from("321 CbA")
        );
    }

    #[test]
    fn handles_empty_string() {
        assert_eq!(strreverse(&VBString::from("")).unwrap(), VBString::from(""));
    }

    #[test]
    fn handles_unicode() {
        assert_eq!(
            strreverse(&VBString::from("héllo")).unwrap(),
            VBString::from("olléh")
        );
    }
}