الترميز كحالة الثعبان

يُشفّر الإدخال باستخدام “الترميز كحالة الثعبان” وفقًا للمعيار المقابل.

المدخلات: نصالنتيجة: نص

إدخال نصي

خيارات الأداة

أمثلة

Map an API property to a database-column style

المدخلات

createdAt

Expected answer

created_at
محاولة الوعي بالسياق
Off
Separate an acronym from the next word

HTTP is treated as one word.

المدخلات

HTTPResponseCode

Expected answer

http_response_code
محاولة الوعي بالسياق
Off
Normalize a measurement heading containing a number

The digit 2 forms its own word boundary; inspect the exact output before adopting a schema name.

المدخلات

CO2 concentration ppm

Expected answer

co_2_concentration_ppm
محاولة الوعي بالسياق
Off
Deburr a city name for a plain ASCII identifier

The original diacritics are removed.

المدخلات

São Paulo station

Expected answer

sao_paulo_station
محاولة الوعي بالسياق
Off
Rename bare tokens while retaining a quoted key

Context mode protects double-quoted text; review real code with its parser before applying replacements.

المدخلات

firstName = "displayName"; maxRetries = 5;

Expected answer

first_name = "displayName"; max_retries = 5;
محاولة الوعي بالسياق
On
To Snake case (dumb)

المدخلات

hello world

Expected answer

hello_world
محاولة الوعي بالسياق
Off
To Snake case (smart)

المدخلات

test='hello'
echo $test
aSnakeCaseFunction
$aSnakeCaseVariable;
function functionName() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}

Expected answer

test='hello'
echo $test
a_snake_case_function
$a_snake_case_variable;
function function_name() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}
محاولة الوعي بالسياق
On

المعاملات

المعاملالقيمة الافتراضيةالمدخلات والخيارات
محاولة الوعي بالسياقfalseتشغيل أو إيقاف

أدوات ذات صلة

تنسيق الشفرة

مرجع العملية

عرض الوثائق التقنية الأصلية (English)