Docs.rs
string-analyze-0.1.1
string-analyze 0.1.1
Docs.rs crate page
MIT
25 September 2026
Links
Homepage
Repository
crates.io
Source
Owners
ZEROLINGG
Dependencies
base64 ^0.23
normal
hex ^0.4
normal
inventory ^0.3
normal
rayon ^1.12.0
normal
regex ^1
normal
rand ^0.10.2
dev
Versions
28.06%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
upper_prob
string_
analyze
0.1.1
In string_
analyze::
tool
string_analyze
::
tool
Function
upper_
prob
Copy item path
Source
pub fn upper_prob(input: &
str
) ->
f64
Expand description
计算字符串中大写字母占所有字母(大小写)的比例。
忽略非字母字符。如果字符串没有英文字母,返回
0.0
。