Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How to declare the string type in FunC?

In Solidity, there is the bytes32 type for declaring string types.

string text = "abc";

Is it possible to declare a string in FunC and if so, how can I do it?

  
  
Posted one year ago
Edited one year ago
Votes Newest

Answers


You can use the slice type to hold strings.

For example:

slice text = "abc";

For more info: https://ton.org/docs/develop/func/literals_identifiers#string-literals

1
1
Posted one year ago
Edited one year ago
1K Views
1 Answer
one year ago
one year ago
Tags