[Development] mid(), left(), right(), and ... ?
thiago.macieira at intel.com
Wed Apr 5 05:10:40 CEST 2017
Em terça-feira, 4 de abril de 2017, às 12:33:40 PDT, Marc Mutz escreveu:
> We have two functions to get a substring without doing some calculations
> involving size():
> - mid(p): mid(p, size() - p)
> - right(n) : mid(size() - n, n)
> (left does not involve size(), so isn't in that set). What is missing is
> a name for
> - f(n): mid(0, size() - n)
> As a mutator, it's called chop(n). So... chopped()?
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development