Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Notepad++: “ansi as utf-8” search results
Searching 851 files for "(ansi as utf-8)|(ansiasutf8)" (regex)
trunk\PowerEditor\src\config.model.xml:
38 ... (see source file)
39 -->
40: <GUIConfig name="NewDocDefaultSettings" format="0" encoding="4" lang="0" codepage="-1" openAnsiAsUTF8="yes" />
41 <GUIConfig name="langsExcluded" gr0="0" gr1="0" gr2="0" gr3="0" gr4="0" gr5="0" gr6="0" gr7="0" langMenuCompact="yes"/>
42 <!--
trunk\PowerEditor\src\Notepad_plus.cpp:
2113 uniModeTextString = TEXT("UCS-2 LE w/o BOM"); break;
2114 case uniCookie:
2115: uniModeTextString = TEXT("ANSI as UTF-8"); break;
2116 default :
2117 uniModeTextString = TEXT("ANSI");
trunk\PowerEditor\src\Parameters.cpp:
3656 _nppGUI._newDocDefaultSettings._codepage = (LangType)i;
3657
3658: val = element->Attribute(TEXT("openAnsiAsUTF8"));
3659 if (val)
3660: _nppGUI._newDocDefaultSettings._openAnsiAsUtf8 = (lstrcmp(val, TEXT("yes")) == 0);
3661
3662 }
....
4701 element->SetAttribute(TEXT("lang"), _nppGUI._newDocDefaultSettings._lang);
4702 element->SetAttribute(TEXT("codepage"), _nppGUI._newDocDefaultSettings._codepage);
4703: element->SetAttribute(TEXT("openAnsiAsUTF8"), _nppGUI._newDocDefaultSettings._openAnsiAsUtf8?TEXT("yes"):TEXT("no"));
4704 newDocDefaultSettingsExist = true;
4705 }
....
4974 GUIConfigElement->SetAttribute(TEXT("lang"), _nppGUI._newDocDefaultSettings._lang);
4975 GUIConfigElement->SetAttribute(TEXT("codepage"), _nppGUI._newDocDefaultSettings._codepage);
4976: GUIConfigElement->SetAttribute(TEXT("openAnsiAsUTF8"), _nppGUI._newDocDefaultSettings._openAnsiAsUtf8?TEXT("yes"):TEXT("no"));
4977 }
4978
trunk\PowerEditor\src\Parameters.h:
517 formatType _format;
518 UniMode _encoding;
519: bool _openAnsiAsUtf8;
520 LangType _lang;
521 int _codepage; // -1 when not using
522: NewDocDefaultSettings():_format(WIN_FORMAT), _encoding(uniCookie), _openAnsiAsUtf8(true), _lang(L_TEXT), _codepage(-1){};
523 };
524
trunk\PowerEditor\src\ScitillaComponent\Buffer.cpp:
521 if (um == uni7Bit)
522 {
523: if (ndds._openAnsiAsUtf8)
524 {
525 um = uniCookie;
trunk\PowerEditor\src\WinControls\Preference\preference.rc:
164 CONTROL "ANSI",IDC_RADIO_ANSI,"Button",BS_AUTORADIOBUTTON | WS_GROUP,222,39,80,10
165 CONTROL "UTF-8 without BOM",IDC_RADIO_UTF8SANSBOM,"Button",BS_AUTORADIOBUTTON,222,53,128,10
166: CONTROL "Apply to opened ANSI files",IDC_CHECK_OPENANSIASUTF8,
167 "Button",BS_AUTOCHECKBOX | WS_TABSTOP,232,65,124,10
168 CONTROL "UTF-8",IDC_RADIO_UTF8,"Button",BS_AUTORADIOBUTTON,222,79,62,10
trunk\PowerEditor\src\WinControls\Preference\preference_rc.h:
187 #define IDD_OPENSAVEDIR_ALWAYSON_BROWSE_BUTTON (IDD_PREFERENCE_NEWDOCSETTING_BOX + 18)
188 #define IDC_NEWDOCUMENT_GR_STATIC (IDD_PREFERENCE_NEWDOCSETTING_BOX + 19)
189: #define IDC_CHECK_OPENANSIASUTF8 (IDD_PREFERENCE_NEWDOCSETTING_BOX + 20)
190 #define IDC_RADIO_OTHERCP (IDD_PREFERENCE_NEWDOCSETTING_BOX + 21)
191 #define IDC_COMBO_OTHERCP (IDD_PREFERENCE_NEWDOCSETTING_BOX + 22)
trunk\PowerEditor\src\WinControls\Preference\preferenceDlg.cpp:
1136 }
1137 ::SendDlgItemMessage(_hSelf, ID2Check, BM_SETCHECK, BST_CHECKED, 0);
1138: ::SendDlgItemMessage(_hSelf, IDC_CHECK_OPENANSIASUTF8, BM_SETCHECK, (ID2Check == IDC_RADIO_UTF8SANSBOM && ndds._openAnsiAsUtf8)?BST_CHECKED:BST_UNCHECKED, 0);
1139: ::EnableWindow(::GetDlgItem(_hSelf, IDC_CHECK_OPENANSIASUTF8), ID2Check == IDC_RADIO_UTF8SANSBOM);
1140
1141 int index = 0;
....
1174 case IDC_RADIO_UCS2BIG:
1175 ndds._encoding = uni16BE;
1176: ndds._openAnsiAsUtf8 = false;
1177: makeOpenAnsiAsUtf8(false);
1178 ndds._codepage = -1;
1179 ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), false);
....
1181 case IDC_RADIO_UCS2SMALL:
1182 ndds._encoding = uni16LE;
1183: ndds._openAnsiAsUtf8 = false;
1184: makeOpenAnsiAsUtf8(false);
1185 ndds._codepage = -1;
1186 ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), false);
....
1188 case IDC_RADIO_UTF8:
1189 ndds._encoding = uniUTF8;
1190: ndds._openAnsiAsUtf8 = false;
1191: makeOpenAnsiAsUtf8(false);
1192 ndds._codepage = -1;
1193 ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), false);
....
1195 case IDC_RADIO_UTF8SANSBOM:
1196 ndds._encoding = uniCookie;
1197: makeOpenAnsiAsUtf8(true);
1198 ndds._codepage = -1;
1199 ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), false);
....
1201 case IDC_RADIO_ANSI:
1202 ndds._encoding = uni8Bit;
1203: ndds._openAnsiAsUtf8 = false;
1204: makeOpenAnsiAsUtf8(false);
1205 ndds._codepage = -1;
1206 ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), false);
1207 return TRUE;
1208
1209: case IDC_CHECK_OPENANSIASUTF8 :
1210: ndds._openAnsiAsUtf8 = (BST_CHECKED == ::SendMessage(::GetDlgItem(_hSelf, IDC_CHECK_OPENANSIASUTF8), BM_GETCHECK, 0, 0));
1211 return TRUE;
1212
trunk\PowerEditor\src\WinControls\Preference\preferenceDlg.h:
99 private :
100 std::vector<LangID_Name> _langList;
101: void makeOpenAnsiAsUtf8(bool doIt){
102 if (!doIt)
103: ::SendDlgItemMessage(_hSelf, IDC_CHECK_OPENANSIASUTF8, BM_SETCHECK, BST_UNCHECKED, 0);
104: ::EnableWindow(::GetDlgItem(_hSelf, IDC_CHECK_OPENANSIASUTF8), doIt);
105 };
106 BOOL CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam);
31 matches across 9 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.