v7.0.0
sprintf
Dart-Implementierung von sprintf. Bietet einfache printf-ähnliche Formatierung wie etwa sprintf("hello %s", ["world"]);
139Likes 9,5 Mio.30-Tage-Downloads130Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Dart-Implementierung von sprintf
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Dart implementation of sprintf.
Add the following to your pubspec.yaml:
dependencies:
sprintf: "^7.0.0"
then run pub install.
Next, import dart-sprintf:
import 'package:sprintf/sprintf.dart';
import 'package:sprintf/sprintf.dart';
void main() {
print(sprintf("%04i", [-42]));
print(sprintf("%s %s", ["Hello", "World"]));
print(sprintf("%#04x", [10]));
}
-042
Hello World
0x0a
Differences to C's printf
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗