开发者

ICU regex quoting

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜