Predefinição:Str mid/Exemplo para teste
Predefinição:Aviso exemplos para testes
{{Str mid/core}}
{{Str mid/Testes}}
input params 2,3,4
Regular
- abc;1;26: Abcdefghijklmnopqrstuvwxyz
- abc;10;5: jklmnopqrstuvwxyz
- abc;10;;: jklmnopqrstuvwxyz
- abc;;6;: Abcdefghijklmnopqrstuvwxyz
- abc;6;200: fghijklmnopqrstuvwxyz
- abc;6;200: fghijklmnopqrstuvwxyz
Use param 4 (index j) not sublength
- abc;10;15: jklmnopqrstuvwxyz
- abc;10; jklmnopqrstuvwxyz
- abc;;6: Abcdefghijklmnopqrstuvwxyz
blank params
- blank string
- :
- ;5:
- ;;5:
- ;;;5:
- ;6;7;8:
- blank for numbers
- abc: Abcdefghijklmnopqrstuvwxyz
- abc;: Abcdefghijklmnopqrstuvwxyz
- abc;;: Abcdefghijklmnopqrstuvwxyz
- abc;;;: Abcdefghijklmnopqrstuvwxyz
- abc;2=: Abcdefghijklmnopqrstuvwxyz
- abc;2=;3=: Abcdefghijklmnopqrstuvwxyz
- abc;2=;3=;4=: Abcdefghijklmnopqrstuvwxyz
- abc;;3=: Abcdefghijklmnopqrstuvwxyz
- abc;;;4=: Abcdefghijklmnopqrstuvwxyz
- abc;2=;;4=: Abcdefghijklmnopqrstuvwxyz
i < 0
- abc;-10;: qrstuvwxyz
- abc;-10;7: qrstuvwxyz
i < 0, using j
- abc;-10;;20: qrstuvwxyz
- abc;-10;;-7: qrstuvwxyz
- abc;-10;;-10: qrstuvwxyz
- abc;-10;;7: qrstuvwxyz
sublen<0
- abc;2=5;3=-3: Abcde
- abc;2=7;3=-3: Abcdefg
- abc;;3=-3;j=10: Abcdefghijklmnopqrstuvwxyz
- abc;;3=3;j=10: Abcdefghijklmnopqrstuvwxyz
- abc;2=7;3=-3: Abcdefg
- abc;;3=-3: Abcdefghijklmnopqrstuvwxyz TODO apply logic: from the end
- abc;;3=-10;4=30: Abcdefghijklmnopqrstuvwxyz (check this: j=30 or j=26?)
Zeros
- abc;0: String Module Error: String subset index out of range
- abc;5;0:
- abc;5;;0: efghijklmnopqrstuvwxyz
- abc;0;0;0:
- abc;2=;: Abcdefghijklmnopqrstuvwxyz
- abc;2=5;3=0:
- abc;2=5;j=0: efghijklmnopqrstuvwxyz
Input errors
- abc;2=2;3=3;7: Predefinição:Error
- abc;;2=foo; Abcdefghijklmnopqrstuvwxyz
- abc;3=foo; Erro de expressão: Palavra "foo" não reconhecida
- abc;2=foo;3=bar; Erro de expressão: Palavra "bar" não reconhecida
Index errors
- Triangular calculation check
- abc;6;7;8: Predefinição:Error
- abc;6;7;8: Predefinição:Error
- ;6;1;8: Predefinição:Error
- other
- abc;0: String Module Error: String subset index out of range
- abc;3;0:
- abc;0;;15: String Module Error: String subset index out of range
- abc;10;;7: jklmnopqrstuvwxyz
- abc;-5;26: vwxyz
- abc;-1;5: z
Error message suppression
- abc;0;10; ignore errors=false: String Module Error: String subset index out of range
- abc;0;10; ignore errors=true:
- abc;0;5: ignore errors=false; ignore errors=false: String Module Error: String subset index out of range
- abc;0;5:ignore errors=true: