Arachnid / solidity-stringutils

Basic string utilities for Solidity
Apache License 2.0
1.14k stars 373 forks source link

Compatibility modifications and feature additions #42

Closed JinQing1991 closed 4 years ago

JinQing1991 commented 4 years ago

The compiler version has been modified so that it can be used in v0.6.0.

  1. The len() method was modified to be compatible with the new version of the compiler.
  2. The comment has been modified so that it meets the solidity‘s natspec comment specification.
  3. A replace(slice memory self, slice memory oldSlice, slice memory newSlice) method has been appended to replace oldSlice in self with newSlice.