Swift switch statement for matching substrings of a String

前端 未结 7 1588
时光说笑
时光说笑 2021-01-01 15:55

Im trying to ask for some values from a variable. The variable is going to have the description of the weather and i want to ask for specific words in order to show differen

7条回答
  •  情书的邮戳
    2021-01-01 16:48

    This link also describes overloading operator ~= which is actually used by the switch statement for matching cases to allow you to match regular expressions.

提交回复
热议问题