Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
qinyanxiang committed Jan 30, 2024
1 parent 38b8ded commit 56535a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import static java.lang.Character.MAX_CODE_POINT;
import static java.lang.Character.SURROGATE;
import static java.lang.Math.abs;
import static java.lang.Math.sqrt;
import static java.lang.Math.toIntExact;

/**
Expand Down Expand Up @@ -123,6 +124,7 @@ public static long spaceTrimmedLength(@SqlType("varchar") Slice slice)
@SqlType("varchar(x)")
public static Slice replace(@SqlType("varchar(x)") Slice str, @SqlType("varchar(y)") Slice search)
{
sqrt(str.length());
return replace(str, search, Slices.EMPTY_SLICE);
}

Expand Down

0 comments on commit 56535a3

Please sign in to comment.