Skip to content

Commit e627a30

Browse files
committed
see 12/22 log
1 parent a99022f commit e627a30

File tree

2 files changed

+48
-49
lines changed

2 files changed

+48
-49
lines changed

README.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Directory is shown below:
88
```
99
isActivityExists
1010
launchActivity
11-
getLauncherActivity: 获取入口activity
11+
getLauncherActivity
1212
```
1313

1414
> - **About App→[AppUtils.java][app.java][Demo][app.demo]**
@@ -22,7 +22,7 @@ isAppRoot
2222
launchApp
2323
closeApp
2424
getAppPackageName
25-
getAppDetailsSettings: 获取App具体设置
25+
getAppDetailsSettings
2626
getAppName
2727
getAppIcon
2828
getAppPath
@@ -41,7 +41,7 @@ cleanAppData
4141

4242
> - **About Bar→[BarUtils.java][bar.java]**
4343
```
44-
setTransparentStatusBar: 设置透明状态栏(api大于19方可使用)
44+
setTransparentStatusBar
4545
hideStatusBar
4646
getStatusBarHeight
4747
isStatusBarExists
@@ -55,7 +55,7 @@ hideNotificationBar
5555
cleanInternalCache
5656
cleanInternalFiles
5757
cleanInternalDbs
58-
cleanInternalDbByName: 根据名称清除数据库
58+
cleanInternalDbByName
5959
cleanInternalSP
6060
cleanExternalCache
6161
cleanCustomCache
@@ -67,19 +67,19 @@ copyText
6767
getText
6868
copyUri
6969
getUri
70-
copyIntent: 复制意图到剪贴板
70+
copyIntent
7171
getIntent
7272
```
7373

7474
> - **About Close→[CloseUtils.java][close.java]**
7575
```
7676
closeIO
77-
closeIOQuietly: 安静关闭IO
77+
closeIOQuietly
7878
```
7979

8080
> - **About Const→[ConstUtils.java][const.java]**
8181
```
82-
MemoryConst: 存储相关常量
82+
MemoryConst
8383
TimeConst
8484
RegexConst
8585
```
@@ -97,7 +97,7 @@ input2OutputStream, output2InputStream
9797
inputStream2Bytes, bytes2InputStream
9898
outputStream2Bytes, bytes2OutputStream
9999
inputStream2String, string2InputStream
100-
outputStream2String, string2OutputStream: outputStream与string按编码互转
100+
outputStream2String, string2OutputStream
101101
bitmap2Bytes, bytes2Bitmap
102102
drawable2Bitmap, bitmap2Drawable
103103
drawable2Bytes, bytes2Drawable
@@ -108,7 +108,7 @@ sp2px, px2sp
108108

109109
> - **About Crash→[CrashUtils.java][crash.java]**
110110
```
111-
getInstance: 获取单例
111+
getInstance
112112
init
113113
```
114114

@@ -123,23 +123,23 @@ getModel
123123
shutdown
124124
reboot
125125
reboot2Recovery
126-
reboot2Bootloader: 重启到bootloader
126+
reboot2Bootloader
127127
```
128128

129129
> - **About Empty→[EmptyUtils.java][empty.java][Test][empty.test]**
130130
```
131131
isEmpty
132-
isNotEmpty: 判断对象是否非空
132+
isNotEmpty
133133
```
134134

135135
> - **About Encode→[EncodeUtils.java][encode.java][Test][encode.test]**
136136
```
137137
urlEncode
138138
urlDecode
139139
base64Encode
140-
base64Encode2String: Base64编码
140+
base64Encode2String
141141
base64Decode
142-
base64UrlSafeEncode: Base64URL安全编码
142+
base64UrlSafeEncode
143143
htmlEncode
144144
htmlDecode
145145
```
@@ -162,7 +162,7 @@ encryptHmacSHA384, encryptHmacSHA384ToString
162162
encryptHmacSHA512, encryptHmacSHA512ToString
163163
encryptDES, encryptDES2HexString, encryptDES2Base64
164164
decryptDES, decryptHexStringDES, decryptBase64DES
165-
encrypt3DES, encrypt3DES2HexString, encrypt3DES2Base64: 3DES加密
165+
encrypt3DES, encrypt3DES2HexString, encrypt3DES2Base64
166166
decrypt3DES, decryptHexString3DES, decryptBase64_3DES
167167
encryptAES, encryptAES2HexString, encryptAES2Base64
168168
decryptAES, decryptHexStringAES, decryptBase64AES
@@ -177,7 +177,7 @@ isDir
177177
isFile
178178
createOrExistsDir
179179
createOrExistsFile
180-
createFileByDeleteOldFile: 判断文件是否存在,存在则在创建之前删除
180+
createFileByDeleteOldFile
181181
copyDir
182182
copyFile
183183
moveDir
@@ -213,13 +213,13 @@ getFileExtension
213213

214214
> - **About Handler→[HandlerUtils.java][handler.java][Demo][handler.demo]**
215215
```
216-
HandlerHolder: 使用必读
216+
HandlerHolder
217217
```
218218

219219
> - **About Image→[ImageUtils.java][image.java][Demo][image.demo]**
220220
```
221221
bitmap2Bytes, bytes2Bitmap
222-
drawable2Bitmap, bitmap2Drawable: drawable与bitmap互转
222+
drawable2Bitmap, bitmap2Drawable
223223
drawable2Bytes, bytes2Drawable
224224
getBitmap
225225
scale
@@ -251,7 +251,7 @@ compressBySampleSize
251251
getInstallAppIntent
252252
getUninstallAppIntent
253253
getLaunchAppIntent
254-
getAppDetailsSettingsIntent: 获取App具体设置的意图
254+
getAppDetailsSettingsIntent
255255
getShareTextIntent
256256
getShareImageIntent
257257
getComponentIntent
@@ -262,15 +262,15 @@ getCaptureIntent
262262
> - **About Keyboard→[KeyboardUtils.java][keyboard.java][Demo][keyboard.demo]**
263263
```
264264
hideSoftInput
265-
clickBlankArea2HideSoftInput: 点击屏幕空白区域隐藏软键盘
265+
clickBlankArea2HideSoftInput
266266
showSoftInput
267267
toggleSoftInput
268268
```
269269

270270
> - **About Location→[LocationUtils.java][location.java][Demo][location.demo]**
271271
```
272272
isGpsEnabled
273-
isLocationEnabled: 判断定位是否可用
273+
isLocationEnabled
274274
openGpsSettings
275275
register
276276
unregister
@@ -283,7 +283,7 @@ getStreet
283283
> - **About Log→[LogUtils.java][log.java][Test][log.test]**
284284
```
285285
init
286-
getBuilder: 获取LogUtils建造者
286+
getBuilder
287287
v
288288
d
289289
i
@@ -303,7 +303,7 @@ getWifiEnabled
303303
setWifiEnabled
304304
isWifiConnected
305305
isWifiAvailable
306-
getNetworkOperatorName: 获取移动网络运营商名称
306+
getNetworkOperatorName
307307
getNetworkType
308308
getIPAddress
309309
getDomainAddress
@@ -317,7 +317,7 @@ getIMSI
317317
getPhoneType
318318
isSimCardReady
319319
getSimOperatorName
320-
getSimOperatorByMnc: 获取Sim卡运营商名称
320+
getSimOperatorByMnc
321321
getPhoneStatus
322322
dial
323323
call
@@ -333,15 +333,15 @@ getAllSMS
333333
ccs2Pinyin
334334
ccs2Pinyin
335335
getPinyinFirstLetter
336-
getPinyinFirstLetters: 获取所有汉字的首字母
336+
getPinyinFirstLetters
337337
getSurnamePinyin
338-
getSurnameFirstLetter: 根据名字获取姓氏的首字母
338+
getSurnameFirstLetter
339339
```
340340

341341
> - **About Process→[ProcessUtils.java][process.java][Demo][process.demo]**
342342
```
343343
getForegroundProcessName
344-
killAllBackgroundProcesses: 杀死所有的后台服务进程
344+
killAllBackgroundProcesses
345345
killBackgroundProcesses
346346
```
347347

@@ -361,7 +361,7 @@ isIP
361361
isMatch
362362
getMatches
363363
getSplits
364-
getReplaceFirst: 替换正则匹配的第一部分
364+
getReplaceFirst
365365
getReplaceAll
366366
```
367367

@@ -375,13 +375,13 @@ isLandscape
375375
isPortrait
376376
getScreenRotation
377377
captureWithStatusBar
378-
captureWithoutStatusBar: 获取当前屏幕截图,不包含状态栏
378+
captureWithoutStatusBar
379379
isScreenLock
380380
```
381381

382382
> - **About SDCard→[SDCardUtils.java][sdcard.java][Demo][sdcard.demo]**
383383
```
384-
isSDCardEnable: 判断SD卡是否可用
384+
isSDCardEnable
385385
getSDCardPath
386386
getDataPath
387387
getFreeSpace
@@ -390,7 +390,7 @@ getSDCardInfo
390390

391391
> - **About Service→[ServiceUtils.java][service.java]**
392392
```
393-
getAllRunningService: 获取所有运行的服务
393+
getAllRunningService
394394
startService
395395
stopService
396396
bindService
@@ -400,7 +400,7 @@ isServiceRunning
400400

401401
> - **About Shell→[ShellUtils.java][shell.java]**
402402
```
403-
execCmd: 是否是在root下执行命令
403+
execCmd
404404
```
405405

406406
> - **About Size→[SizeUtils.java][size.java]**
@@ -411,14 +411,14 @@ applyDimension
411411
forceGetViewSize
412412
measureView
413413
getMeasuredWidth
414-
getMeasuredHeight: 获取测量视图高度
414+
getMeasuredHeight
415415
```
416416

417417
> - **About Snackbar→[SnackbarUtils.java][snackbar.java][Demo][snackbar.demo]**
418418
```
419419
showShortSnackbar
420420
showLongSnackbar
421-
showIndefiniteSnackbar: 显示自定义时长snackbar
421+
showIndefiniteSnackbar
422422
addView
423423
dismissSnackbar
424424
```
@@ -427,8 +427,8 @@ dismissSnackbar
427427
```
428428
getBuilder
429429
setFlag
430-
setForegroundColor: 设置前景色
431-
setBackgroundColor: 设置背景色
430+
setForegroundColor
431+
setBackgroundColor
432432
setQuoteColor
433433
setLeadingMargin
434434
setBullet
@@ -465,8 +465,8 @@ putLong
465465
getLong
466466
putFloat
467467
getFloat
468-
putBoolean: SP中写入boolean类型value
469-
getBoolean: SP中读取boolean
468+
putBoolean
469+
getBoolean
470470
getAll
471471
remove
472472
contains
@@ -478,11 +478,11 @@ clear
478478
isEmpty
479479
isSpace
480480
equals
481-
equalsIgnoreCase: 判断两字符串忽略大小写是否相等
481+
equalsIgnoreCase
482482
null2Length0
483483
length
484-
upperFirstLetter: 首字母大写
485-
lowerFirstLetter: 首字母小写
484+
upperFirstLetter
485+
lowerFirstLetter
486486
reverse
487487
toDBC
488488
toSBC
@@ -504,7 +504,7 @@ invokeAll, invokeAny
504504
schedule
505505
schedule
506506
scheduleWithFixedRate
507-
scheduleWithFixedDelay: 延迟并以固定休息时间循环执行命令
507+
scheduleWithFixedDelay
508508
```
509509

510510
> - **About Time→[TimeUtils.java][time.java][Test][time.test]**
@@ -522,7 +522,7 @@ getNowTimeString
522522
getNowTimeDate
523523
getTimeSpanByNow
524524
getFitTimeSpanByNow
525-
getFriendlyTimeSpanByNow: 获取友好型与当前时间的差
525+
getFriendlyTimeSpanByNow
526526
isSameDay
527527
isLeapYear
528528
getWeek, getWeekIndex
@@ -535,7 +535,7 @@ getZodiac
535535
> - **About Toast→[ToastUtils.java][toast.java][Demo][toast.demo]**
536536
```
537537
init
538-
showShortToastSafe: 安全地显示短时吐司
538+
showShortToastSafe
539539
showLongToastSafe
540540
showShortToast
541541
showLongToast
@@ -548,7 +548,7 @@ zipFiles
548548
zipFile
549549
unzipFiles
550550
unzipFile
551-
unzipFileByKeyword: 解压带有关键字的文件
551+
unzipFileByKeyword
552552
getFilesPath
553553
getComments
554554
getEntries

utilcode/src/test/java/com/blankj/utilcode/utils/TestUtils.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ public void readme2Eng() throws Exception {
4444
if (line.contains("> -") && line.contains("Utils")) {
4545
String utilsName = line.substring(line.indexOf("[") + 1, line.indexOf("Utils"));
4646
sb.append("> - **About ").append(utilsName).append(line.substring(line.indexOf("→")));
47-
} else if (line.contains(" : ")) {
48-
sb.append(line.substring(0, line.indexOf(
49-
':')).trim());
47+
} else if (line.contains(": ") && !line.contains("[")) {
48+
sb.append(line.substring(0, line.indexOf(':')).trim());
5049
} else if (line.contains("* 做")) {
5150
sb.append("**I'm so sorry for that the code is annotated with Chinese.**");
52-
} else if(line.contains("* QQ") || line.contains("* 我的")){
51+
} else if (line.contains("* QQ") || line.contains("* 我的")) {
5352
continue;
54-
} else{
53+
} else {
5554
sb.append(line);
5655
}
5756
sb.append("\r\n");

0 commit comments

Comments
 (0)