on redemare en Rust

This commit contains the following changes:
     M .gitignore
     A Cargo.lock
     A Cargo.toml
     A PMOMusic/Cargo.toml
     A PMOMusic/src/main.rs
     D README.md
     A Readme.md
This commit is contained in:
2025-09-16 21:07:44 +02:00
parent e215d734c9
commit 731e58b1d0
1218 changed files with 545907 additions and 9 deletions

View File

@@ -0,0 +1,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.segment = void 0;
function segment(...args) {
const text = args[0];
if (args.length === 1) {
return text;
}
let source;
let start;
let end;
let hasData = false;
let data;
if (typeof args[1] !== 'number') {
source = args[1];
start = typeof args[2] == 'number' ? args[2] : args[2][0];
end = typeof args[2] == 'number' ? args[2] + text.length : args[2][1];
hasData = args.length >= 4;
if (hasData) {
data = args[3];
}
}
else {
start = typeof args[1] == 'number' ? args[1] : args[1][0];
end = typeof args[1] == 'number' ? args[1] + text.length : args[1][1];
hasData = args.length >= 3;
if (hasData) {
data = args[2];
}
}
if (hasData) {
return [text, source, [start, end], data];
}
else {
return [text, source, [start, end]];
}
}
exports.segment = segment;
//# sourceMappingURL=segment.js.map