/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
/* $Id$ */
/* START LICENSE */
/* -------------------------------------------------------------------------- */
-/* The WWW Library - LibW3 */
-/* developed by Nishi */
-/* http://nishi.boats/libw3 */
+/* The WWW Library - LibW3 */
+/* developed by Nishi */
+/* http://nishi.boats/libw3 */
/* -------------------------------------------------------------------------- */
/* Copyright (c) 2024 Nishi. */
/* Redistribution and use in source and binary forms, with or without modific */
my $io = IO::Handle->new();
if(open $io, '<', "HEADER"){
+ my $len = 0;
while(<$io>){
my @list = $_ =~ /.{1,$rep}/g;
for my $s (@list){
- $repl = $repl . "/* $s" . (" " x ($rep - length($s))) . " */\n";
+ if(length($s) > $len){
+ $len = length($s);
+ }
}
}
- $repl = $repl . "/* " . ("-" x $rep) . " */\n";
$io->close;
+ open $io, '<', "HEADER";
+ while(<$io>){
+ my @list = $_ =~ /.{1,$rep}/g;
+ for my $s (@list){
+ $repl = $repl . "/* " . (" " x ($rep - $len - 1)) . "$s" . (" " x ($len - length($s) + 1)) . " */\n";
+ }
+ }
+ $repl = $repl . "/* " . ("-" x $rep) . " */\n";
}
$io = IO::Handle->new();