开发者

ICU regex quoting

开发者 https://www.devze.com 2023-01-04 17:15 出处:网络
I am wondering if there is a way to quote a string in the ICU (c++) library. There exists \"\\Q\" + string + \"\\E\" but I开发者_如何学Go am having generated input come in as the string provided. Ther

I am wondering if there is a way to quote a string in the ICU (c++) library. There exists "\Q" + string + "\E" but I开发者_如何学Go am having generated input come in as the string provided. There does not seem to be any ICU quote regex method. Would just changing all "\E" in string to \\E work.


I'd file a feature request with your use case. I don't think there's currently a function to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号