zoukankan      html  css  js  c++  java
  • condense 参数

    " 删除左右空格,中间空格压缩至一格
    result = condense( '   abc   def   ').
    result = condense( val = ' abc def ').

    " 删除所有空格
    condense result no-gaps.

    " 字符串根据 from 内容进行替换,from 为空不进行替换
    result = condense( val = '   abc   def   ' from = '' ).
    
    " b替换成空格
    result = condense( val = '   abc   def   ' from = 'b' ).

    " del 为空,不删除前后字符串,
    result = condense( val = `XXabcXXXdefXX` del = '' from = 'X' to = 'X' ).

    result = condense( val = `XXabcXXXdefXX` del = 'X' from = 'X' to = 'X' ).

  • 相关阅读:
    2015 8月 做题记录
    Nim及SG函数
    CodeForces
    CF 546E(最大流
    CF 544E(状压
    树形DP
    HDU 4173(计算几何
    HDU 4081(最小生成树
    codeforeces 540E(树状数组
    Linux nginx安装
  • 原文地址:https://www.cnblogs.com/jinyin/p/11246050.html
Copyright © 2011-2022 走看看