strings 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. ========================
  2. Expression: string(5)
  3. Object is a string : 5
  4. ========================
  5. Expression: string(0.5)
  6. Object is a string : 0.5
  7. ========================
  8. Expression: string(-0.5)
  9. Object is a string : -0.5
  10. ========================
  11. Expression: string(true())
  12. Object is a string : true
  13. ========================
  14. Expression: string(false())
  15. Object is a string : false
  16. ========================
  17. Expression: concat("titi","toto")
  18. Object is a string : tititoto
  19. ========================
  20. Expression: concat("titi","toto","tata")
  21. Object is a string : tititototata
  22. ========================
  23. Expression: concat("titi",'toto')
  24. Object is a string : tititoto
  25. ========================
  26. Expression: concat("titi",'toto',"tata","last")
  27. Object is a string : tititototatalast
  28. ========================
  29. Expression: starts-with("tititoto","titi")
  30. Object is a Boolean : true
  31. ========================
  32. Expression: starts-with("tititoto","to")
  33. Object is a Boolean : false
  34. ========================
  35. Expression: contains("tititototata","titi")
  36. Object is a Boolean : true
  37. ========================
  38. Expression: contains("tititototata","toto")
  39. Object is a Boolean : true
  40. ========================
  41. Expression: contains("tititototata","tata")
  42. Object is a Boolean : true
  43. ========================
  44. Expression: contains("tititototata","tita")
  45. Object is a Boolean : false
  46. ========================
  47. Expression: substring("12345",2,3)
  48. Object is a string : 234
  49. ========================
  50. Expression: substring("12345",2)
  51. Object is a string : 2345
  52. ========================
  53. Expression: substring("12345",-4)
  54. Object is a string : 12345
  55. ========================
  56. Expression: substring("12345",3.4)
  57. Object is a string : 345
  58. ========================
  59. Expression: substring("12345",3.6)
  60. Object is a string : 45
  61. ========================
  62. Expression: substring("12345",1.5,2.6)
  63. Object is a string : 234
  64. ========================
  65. Expression: substring("12345",2.2,2.2)
  66. Object is a string : 23
  67. ========================
  68. Expression: substring("12345",0,3)
  69. Object is a string : 12
  70. ========================
  71. Expression: substring("12345",-8,10)
  72. Object is a string : 1
  73. ========================
  74. Expression: substring("12345",4,-10)
  75. Object is a string :
  76. ========================
  77. Expression: substring("12345",0 div 0, 3)
  78. Object is a string :
  79. ========================
  80. Expression: substring("12345",1, 0 div 0)
  81. Object is a string :
  82. ========================
  83. Expression: substring("12345",1 div 0, 3)
  84. Object is a string :
  85. ========================
  86. Expression: substring("12345",3,-1 div 0)
  87. Object is a string :
  88. ========================
  89. Expression: substring("12345",-42, 1 div 0)
  90. Object is a string : 12345
  91. ========================
  92. Expression: substring("12345",-1 div 0, 1 div 0)
  93. Object is a string :
  94. ========================
  95. Expression: substring("12345",-1 div 0,5)
  96. Object is a string :
  97. ========================
  98. Expression: string-length("")
  99. Object is a number : 0
  100. ========================
  101. Expression: string-length("titi")
  102. Object is a number : 4