@@ -123,7 +123,11 @@ fn is_prohibited_bidirectional_text(s: &str) -> bool {
123
123
false
124
124
}
125
125
126
- /// [RFC 3419]: https://tools.ietf.org/html/rfc3419
126
+ /// Prepares a string with the Nameprep profile of the stringprep algorithm.
127
+ ///
128
+ /// Nameprep is defined in [RFC 3491][].
129
+ ///
130
+ /// [RFC 3491]: https://tools.ietf.org/html/rfc3491
127
131
pub fn nameprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
128
132
// 3. Mapping
129
133
let mapped = s. chars ( )
@@ -167,7 +171,11 @@ pub fn nameprep<'a>(s: &'a str) -> Result<Cow<'a, str>, Error> {
167
171
Ok ( Cow :: Owned ( normalized) )
168
172
}
169
173
170
- /// [RFC 3920, Appendix A] https://tools.ietf.org/html/rfc3920#appendix-A
174
+ /// Prepares a string with the Nodeprep profile of the stringprep algorithm.
175
+ ///
176
+ /// Nameprep is defined in [RFC 3920, Appendix A][].
177
+ ///
178
+ /// [RFC 3920, Appendix A]: https://tools.ietf.org/html/rfc3920#appendix-A
171
179
pub fn nodeprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
172
180
// A.3. Mapping
173
181
let mapped = s. chars ( )
@@ -221,7 +229,11 @@ fn prohibited_node_character(c: char) -> bool {
221
229
}
222
230
}
223
231
224
- /// [RFC 3920, Appendix B] https://tools.ietf.org/html/rfc3920#appendix-B
232
+ /// Prepares a string with the Resourceprep profile of the stringprep algorithm.
233
+ ///
234
+ /// Nameprep is defined in [RFC 3920, Appendix B][].
235
+ ///
236
+ /// [RFC 3920, Appendix B]: https://tools.ietf.org/html/rfc3920#appendix-B
225
237
pub fn resourceprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
226
238
// B.3. Mapping
227
239
let mapped = s. chars ( )
0 commit comments