我希望对话框具有最大高度设置,但是,如果内容较小,则缩小以执行height = 'auto'操作.这在JQuery UI对话框中是否可行?
我想从字符串中删除每个字母字符.
但问题是我不知道字母范围,因为它是UTF8字符串.
它可以是ENGLISH,ՀԱՅԵՐԵՆ,ქართული,УКРАЇНСЬКИЙ,РУССКИЙ
我经常这样做
$str = preg_replace('/[^a-zA-Z]/', '', $str);
Run Code Online (Sandbox Code Playgroud)
要么
$str = preg_replace('/[^\w]/u', '', $str);
Run Code Online (Sandbox Code Playgroud)
但他们都清楚外国人的角色
任何的想法?
This is what I've got so far but I can't figure out my next steps.
When I divide my value with 3 I get whole numbers but I want it to display with one decimal and I don't know how.
When that's done I want to round the decimal up or down depending on its value. If it's 3.5 or over it should become 4 and if it's 3.4 or under it should be 3.
void MainWindow::on_pushButton_clicked(){
int paragraph = …Run Code Online (Sandbox Code Playgroud)