de.tsl2.nano.core.util.StringUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
???? =`
java/lang/Object ()V
!de/tsl2/nano/core/util/StringUtil substring K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Ljava/lang/String;
L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ)Ljava/lang/String;
java/lang/String indexOf (Ljava/lang/String;)I
lastIndexOf
length ()I
! " (II)Ljava/lang/String;
$ % (I)Ljava/lang/String;
' ( ) extract @(Ljava/lang/CharSequence;Ljava/lang/String;[I)Ljava/lang/String;
+ , (Ljava/lang/String;I)I .
0 1 R(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
3 + 4 java/lang/StringBuilder
3 $
3 !
3
9 : ; toCharArray ()[C
3 = > (Ljava/lang/String;)V
@ A B trim (Ljava/lang/StringBuilder;C)V
3 D E F toString ()Ljava/lang/String;
3 H I J charAt (I)C
3 L M N deleteCharAt (I)Ljava/lang/StringBuilder;
P Q R replace A(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;I)V
3 T Q U /(IILjava/lang/String;)Ljava/lang/StringBuilder;
W X Y
replaceAll _(Ljava/lang/CharSequence;Ljava/lang/String;ILde/tsl2/nano/core/ITransformer;)Ljava/lang/String;
[ \ ] ^ _ java/util/regex/Pattern compile -(Ljava/lang/String;)Ljava/util/regex/Pattern;
[ a b c matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; e java/lang/StringBuffer g h java/lang/CharSequence
d j k (I)V
m n o p q java/util/regex/Matcher find ()Z
m s t u appendReplacement E(Ljava/lang/StringBuffer;Ljava/lang/String;)Ljava/util/regex/Matcher;
m w x % group z { | } ~ de/tsl2/nano/core/ITransformer transform &(Ljava/lang/Object;)Ljava/lang/Object;
d ? ? ? append ,(Ljava/lang/String;)Ljava/lang/StringBuffer;
m ? ? ?
appendTail 2(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
d D
d
3 ? ? k setLength
3 ? ? ? 3(Ljava/lang/StringBuffer;)Ljava/lang/StringBuilder;
? ? ? valueOf &(Ljava/lang/Object;)Ljava/lang/String;
? ? ? ? ? java/lang/Math min (II)I
D ? java/lang/Integer??? ? ...
? ? ? getClass ()Ljava/lang/Class;
? ? ? ? q java/lang/Class isArray
? ? ? ? ? de/tsl2/nano/core/util/Util asList *(Ljava/lang/Object;)Ljava/util/Collection; ?
java/util/Map ? ? ? ? entrySet ()Ljava/util/Set; ? java/util/Collection ? ? ? size ? ? ? makeConcatWithConstants '(Ljava/lang/String;I)Ljava/lang/String; ? ? ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
? ? ? toFormattedString ((Ljava/lang/Object;IZ)Ljava/lang/String; ?
? ? ? :(Ljava/lang/Object;IZLjava/lang/String;)Ljava/lang/String; ? ? ? ? toArray ()[Ljava/lang/Object; ?
*
? ? ? split ((Ljava/lang/String;I)[Ljava/lang/String; ? [Ljava/lang/Object;
3 j ? ? % ? ? ? J(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
3 ? ? ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? tsl2nano.more.elements
? ? ? ? ? de/tsl2/nano/core/Messages getString &(Ljava/lang/String;)Ljava/lang/String;
? ? ? ? (I)Ljava/lang/Integer;
? ? ? ? ? java/text/MessageFormat format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
? ? ? fixString )(Ljava/lang/String;ICZ)Ljava/lang/String;
d ? ? ? (C)Ljava/lang/StringBuffer;
d ? ? ? ? ?
d =
d +
d ? Q ? .(IILjava/lang/String;)Ljava/lang/StringBuffer; ${ }
insertProperties Y(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ? keySet
java/util/Set iterator ()Ljava/util/Iterator; q java/util/Iterator hasNext next ()Ljava/lang/Object;
d ? ~ get java/util/LinkedList
! (" S(Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;I[I)Ljava/lang/String;
?$%& isEmpty (Ljava/lang/Object;)Z()*+& java/util/List add(- ?. (([Ljava/lang/Object;)[Ljava/lang/Object;0 [Ljava/lang/String;
m2 p3 (I)Z
m56
groupCount
89: concatGroups /(Ljava/util/regex/Matcher;[I)Ljava/lang/String;
3 = "tsl2nano.string.split.regex.marker? ^
?AB 8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;D °
FGH
startsWith (Ljava/lang/String;)Z
JKH endsWith
M QN D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; P ?Q J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
STU substringEx M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)Ljava/lang/String;W java/lang/IllegalStateException Y ?Z '(ILjava/lang/String;)Ljava/lang/String;
V =
] A F P
`a subRegex
cd subRegexFrom
fg
subRegexToi [-./]
k ?l '(Ljava/lang/String;)[Ljava/lang/String;
no ? spaceCamelCaseq \ss ([a-z0-9])([A-Z])u $1 $2
w X ?
y ?z ([C)Ljava/lang/String; | ?} 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
d
d !
? ?? 9(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;? java/util/ArrayList
?
?
??? ?? java/util/Arrays %([Ljava/lang/Object;)Ljava/util/List;
???? addAll (Ljava/util/Collection;)Z
? ?
??? concat )([C[Ljava/lang/Object;)Ljava/lang/String;
m? x F
H
? ?? (C)Ljava/lang/String;
?? F toUpperCase
?? F toLowerCase
??? getBytes ()[B
????
cryptoHash ([B)[B? UTF-8
??? (Ljava/lang/String;)[B
???? ([BLjava/lang/String;)[B? java/lang/Exception
????? "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;? java/math/BigInteger
?? ? (I[B)V
?? E %
?? ? fromBaseString
????? java/lang/Character digit (CI)I
??? toBase64 ([B)Ljava/lang/String;
????? java/util/Base64
getEncoder ()Ljava/util/Base64$Encoder;
????? java/util/Base64$Encoder encodeToString
????
getDecoder ()Ljava/util/Base64$Decoder;
????? java/util/Base64$Decoder decode
? ? ([B)V
??? , parseInt
3? ?? (C)Ljava/lang/StringBuilder; g??? subSequence (II)Ljava/lang/CharSequence; ??? XTAG Ljava/lang/String; ??
? java/io/ByteArrayInputStream
??
??? fromInputStream ;(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String;
??? M(Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; java/util/Scanner
? (Ljava/io/InputStream;)V
? q hasNextLine
? F nextLine
? close
? [
]+ java/io/StringWriter
java/io/PrintWriter
(Ljava/io/Writer;)V java/util/function/Consumer accept (Ljava/lang/Object;)V
D! [^\w\d]+([\w\d]) # }$ "()Lde/tsl2/nano/core/ITransformer;& .*(( |* ).*,
./0 contains (Ljava/lang/CharSequence;)Z2 />4 <[^>]*> MAX_TRIES I
ConstantValue P
VAR_REGEXP; \$\{[\w._-]+\} STR_ANY> * Code LineNumberTable LocalVariableTable this #Lde/tsl2/nano/core/util/StringUtil; data from to RuntimeVisibleAnnotations ,Lde/tsl2/nano/autotest/creator/Expectations; value &Lde/tsl2/nano/autotest/creator/Expect; when !something.. ..some other < > then content subEnclosing K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String; iFrom iTo constrain Z
StackMapTable false start fromRegex toRegex last i j Q(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; Ljava/lang/StringBuilder; src charactersToTrim carr [C sbd
.. .<> c C @(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)V str
expression replacement ^(Ljava/lang/CharSequence;Ljava/lang/String;Lde/tsl2/nano/core/ITransformer;)Ljava/lang/String; Ljava/lang/CharSequence; regex transformer Lde/tsl2/nano/core/ITransformer; LocalVariableTypeTable FLde/tsl2/nano/core/ITransformer; Signature ?(Ljava/lang/CharSequence;Ljava/lang/String;Lde/tsl2/nano/core/ITransformer;)Ljava/lang/String; Ljava/util/regex/Matcher; result Ljava/lang/StringBuffer; ?(Ljava/lang/CharSequence;Ljava/lang/String;ILde/tsl2/nano/core/ITransformer;)Ljava/lang/String; @(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)I count toStringCut '(Ljava/lang/Object;I)Ljava/lang/String; obj Ljava/lang/Object; len s o maxLength postfix 9 someth... maxLineCount 1 ' [0]: something.. ..some other showLines array
strBuilder sep (IC)Ljava/lang/String; fixLength fillChar 10
cccccccccc origin
shiftRight rightFill buf
fillLength
fillString
insertObjects text objects q n t 5(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;
properties Ljava/util/Map; 6Ljava/util/Map<+Ljava/lang/Object;Ljava/lang/Object;>; \(Ljava/lang/String;Ljava/util/Map<+Ljava/lang/Object;Ljava/lang/Object;>;)Ljava/lang/String; name vname
key_prefix key_postfix Ljava/util/Set; $Ljava/util/Set<+Ljava/lang/Object;>; ?(Ljava/lang/String;Ljava/util/Map<+Ljava/lang/Object;Ljava/lang/Object;>;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ((Ljava/lang/String;Ljava/lang/String;I)I f
extractAll A(Ljava/lang/CharSequence;Ljava/lang/String;[I)[Ljava/lang/String; source regexp groups [I e all Ljava/util/List; $Ljava/util/List;? P(Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; [<].*[>] [\1] p Ljava/util/regex/Pattern; m :(Ljava/lang/Object;Ljava/lang/String;[I)Ljava/lang/String;
betweenFiller splitIndexes lastIndex splitFix ;(Ljava/lang/String;Z[Ljava/lang/String;)[Ljava/lang/String; splitter
REG_MARKER
IGN_MARKER ll ignore pos lastpos regexFrom regexTo splitWordBinding word splitCamelCase ccName space Camel Case names ssep
concatWrap wrap wwrap maxLineWidth $something
.. ..some
other CR items lines Ljava/util/ArrayList; )Ljava/util/ArrayList;
findRegExp 9(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String; toFirstUpper string toFirstLower replaceNulls ([Ljava/lang/Object;Z)V strs useNull ((Ljava/lang/String;Ljava/lang/String;)[B Ljava/lang/Exception; algorithm toHexString bytes [B
fromHexString hex isHexString txt carray raw
fromBase64 encoded base toDecString
fromDecString number cut 3(Ljava/lang/CharSequence;I)Ljava/lang/CharSequence; TT; &(TT;I)TT;
removeXMLTags
xmlContent
toInputStream )(Ljava/lang/String;)Ljava/io/InputStream; )(Ljava/io/InputStream;)Ljava/lang/String; stream Ljava/io/InputStream; /Lde/tsl2/nano/autotest/creator/InverseFunction;
methodName
parameters compareParameterIndex lineEnd lineStart scanner Ljava/util/Scanner; java/io/InputStream java/lang/Throwable
fuzzyMatch '(Ljava/lang/Object;Ljava/lang/String;)D lb item filter weight D la removeFormatChars
printToString 1(Ljava/util/function/Consumer;)Ljava/lang/String; Ljava/util/function/Consumer; sw Ljava/io/StringWriter; pw Ljava/io/PrintWriter; 4Ljava/util/function/Consumer; H(Ljava/util/function/Consumer;)Ljava/lang/String;
countFindings '(Ljava/lang/String;Ljava/lang/String;)I search toValidName (([Ljava/lang/String;)[Ljava/lang/String; args
matchingOneOf '([Ljava/lang/Object;)Ljava/lang/String; matchers ([Ljava/lang/Object;)I l objs isXml lambda$toValidName$0
SourceFile StringUtil.java BootstrapMethods9
:;< ?= $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;? size=]A C []: E G split :''not found!I ''' on split: '' + not found in data:K [
]?(\w*)M
NOPQR "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ~U
V3 ? ? InnerClasses Encoder Decoder\ %java/lang/invoke/MethodHandles$Lookup^ java/lang/invoke/MethodHandles Lookup ! 56 7 8 9? 7 : <? 7 = ?? P ? / *? ? @ /A BC Q ? F *+,? ? @ ;A D? E? F? G # H I[ @J K[ sLsMsNOsP QR ? V q+? ,?
? ? *?+? *+,?
?,? *+,? ?*+? 6*,? 6? ? ? ?*?
+? `? ? ? *? ? ? @ . H I J K L # M , O 3 P : Q J R L TA > 3 >S6 : 7T6 qD? qE? qF? qUV W [ @ ? P ? ?
? G &